-
Notifications
You must be signed in to change notification settings - Fork 7
Error: (SystemJS) require is not defined(…) #1
Comments
Thanks for using this module, but this is out of scope question, I think.
I also googled this, |
There is CommonJS speicified in my tsconfig. Do you think this is something related to Visual Studio? |
it must be |
Sorry, I found angular.io uses If not, plz post this question to stackoverflow, so that you will get your answers a lot faster than here. |
yeah, it was working ok before adding ng2-tab |
Did you use |
Please visit this chat room. https://gitter.im/ng2-ui/ng2-tab?utm_source=share-link&utm_medium=link&utm_campaign=share-link |
In System.config->Packages I have replaced index.js with ng2-tab.umd.js and got another issue: core_1.Input is not a function . There is something wrong with decorators referencing in TS file generated by webpack. |
Hi there.
I am using VS2015 with Angular2.
Installed ng2-tab from npm and getting this:
"angular2-polyfills.js:349 Error: (SystemJS) require is not defined(…)"
Let me know if you need more details. Also, I can provide my PC via TeamViewer for debugging.
Thanks. Renat
P.S. stack:
angular2-polyfills.js:349 Error: (SystemJS) require is not defined
ReferenceError: require is not defined
at eval (http://localhost:50378/lib/npmlibs/ng2-tab/dist/index.js:11:14)
at eval (http://localhost:50378/lib/npmlibs/ng2-tab/dist/index.js:31:3)
at eval ()
Evaluating http://localhost:50378/lib/npmlibs/ng2-tab/dist/index.js
Error loading http://localhost:50378/lib/npmlibs/ng2-tab/dist/index.js as "ng2-tab" from http://localhost:50378/src/components/dashboard.component.js
at eval (http://localhost:50378/lib/npmlibs/ng2-tab/dist/index.js:11:14)
at eval (http://localhost:50378/lib/npmlibs/ng2-tab/dist/index.js:31:3)
at eval ()
Evaluating http://localhost:50378/lib/npmlibs/ng2-tab/dist/index.js
Error loading http://localhost:50378/lib/npmlibs/ng2-tab/dist/index.js as "ng2-tab" from http://localhost:50378/src/components/dashboard.component.js
The text was updated successfully, but these errors were encountered: