Comments (8)
Thanks for using this module, but this is out of scope question, I think.
A require statement is CommonJS module format, not SystemJS format
I also googled this,
http://stackoverflow.com/questions/34730010/angular2-5-minute-install-bug-require-is-not-defined
from tab.
There is CommonJS speicified in my tsconfig. Do you think this is something related to Visual Studio?
{
"compilerOptions": {
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"module": "commonjs", << ====
"noEmitOnError": false,
"noImplicitAny": false,
"outDir": "../wwwroot/src/",
"removeComments": false,
"sourceMap": true,
"target": "es5"
},
"compileOnSave": true,
"exclude": [
"node_modules"
]
}
from tab.
it must be systemjs
to run your app on browser. http://stackoverflow.com/a/34954984/454252
from tab.
Sorry, I found angular.io uses commonjs
https://angular.io/docs/ts/latest/quickstart.html. I think I am missing something. Does your app run without ng2-tab?
If not, plz post this question to stackoverflow, so that you will get your answers a lot faster than here.
from tab.
yeah, it was working ok before adding ng2-tab
from tab.
Did you use ng2-tab.umd.js
?
from tab.
Please visit this chat room. https://gitter.im/ng2-ui/ng2-tab?utm_source=share-link&utm_medium=link&utm_campaign=share-link
from tab.
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.
Generated TS file itself is ok. I copied it into my project and tabs component works ok
from tab.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tab.