NPM Package Published
BlairAllegroTech opened this issue · comments
BlairJ commented
Any feedback appreciated
BlairJ commented
No feedback so i will assume there are no problems with this package
NullVoxPopuli commented
how do I import this?
in an angular project I tired
import { DSJsonApiAdapter } from 'js-data-jsonapi';
and I got the error:
Cannot find module 'js-data-jsonapi'.
BlairJ commented
@NullVoxPopuli I think if you are running in a browser you just need to reference the javascript file using an html script tag.
You can not import modules natively in a browser..
https://developer.mozilla.org/en/docs/web/javascript/reference/statements/import
NullVoxPopuli commented
well, I'm using typescript, and angular-cli with the latest angular-2, so I should be able to. It's not pure browser -- it's pre-browser / pre-transpiled js.