You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Angular2 used to provide SystemJS bundles in their older package (angular2), but they stopped doing so after RC. I tried to use gulp-jspm-build to create such a package myself, but a nasty error keeps popping up.
Ideally, I would like to have just one angular.js file with all core modules concatenated. It will be included onto the page in a script tag, so that no modules will have to be dynamically loaded at runtime.
I started small, with just one module. Here is the gulpfile.js:
Error on fetch for @angular/core at file:///C:/tests/WebTest/@angular/core
Error: ENOENT: no such file or directory, open 'C:\tests\WebTest\@angular\core'
at Error (native)
The root folder (where gulpfile.js and system.config.js are stored) is C:\tests\WebTest. The correct folder for @angular/core would be C:\tests\WebTests\node_modules\@angular\core.
My config file does not seem to be loaded at all. Even when I mess it up, add syntax errors or even specify an invalid path to it, the error does not change. Copying the entire config into configOverride section does not change anything either.
What am I doing wrong?
The text was updated successfully, but these errors were encountered:
Angular2 used to provide SystemJS bundles in their older package (
angular2
), but they stopped doing so after RC. I tried to usegulp-jspm-build
to create such a package myself, but a nasty error keeps popping up.Ideally, I would like to have just one
angular.js
file with all core modules concatenated. It will be included onto the page in ascript
tag, so that no modules will have to be dynamically loaded at runtime.I started small, with just one module. Here is the gulpfile.js:
And here is system.config.js:
The following error shows up:
The root folder (where
gulpfile.js
andsystem.config.js
are stored) isC:\tests\WebTest
. The correct folder for@angular/core
would beC:\tests\WebTests\node_modules\@angular\core
.My config file does not seem to be loaded at all. Even when I mess it up, add syntax errors or even specify an invalid path to it, the error does not change. Copying the entire config into
configOverride
section does not change anything either.What am I doing wrong?
The text was updated successfully, but these errors were encountered: