We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.I have installed underscore as npm install underscore
npm install underscore
2.Then I have included it in my systemjs.config.js
System.config({ paths: { // paths serve as alias 'npm:': 'node_modules/', 'underscore': 'node_modules/underscore/underscore.js' },
packages: { app: { main: './main.js', defaultExtension: 'js' }, rxjs: { defaultExtension: 'js' }, 'angular-in-memory-web-api': { main: './index.js', defaultExtension: 'js' }, 'underscore': { main: 'underscore.js', defaultExtension: 'js' } }
import * as _ from 'underscore';
My directory structure goes like:
>app >services --index.ts --pager.service.ts >templates --app.component.html app.component.ts app.module.ts main.ts >node modules >underscore --underscore.js >typings index.html typings.json package.json systemjs.config.js tsconfig.json
Any guidance would be appreciated:)
The text was updated successfully, but these errors were encountered:
Following the files config and running npm install && npm start it worked.
npm install && npm start
Sorry, something went wrong.
No branches or pull requests
1.I have installed underscore as
npm install underscore
2.Then I have included it in my systemjs.config.js
import * as _ from 'underscore';
But it says : cannot find module underscore
My directory structure goes like:
Any guidance would be appreciated:)
The text was updated successfully, but these errors were encountered: