GithubHelp home page GithubHelp logo

Comments (8)

allenhwkim avatar allenhwkim commented on September 18, 2024

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.

Sicrum avatar Sicrum commented on September 18, 2024

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.

allenhwkim avatar allenhwkim commented on September 18, 2024

it must be systemjs to run your app on browser. http://stackoverflow.com/a/34954984/454252

from tab.

allenhwkim avatar allenhwkim commented on September 18, 2024

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.

Sicrum avatar Sicrum commented on September 18, 2024

yeah, it was working ok before adding ng2-tab

from tab.

allenhwkim avatar allenhwkim commented on September 18, 2024

Did you use ng2-tab.umd.js?

from tab.

allenhwkim avatar allenhwkim commented on September 18, 2024

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.

Sicrum avatar Sicrum commented on September 18, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.