jQWidgets Forums

jQuery UI Widgets Forums Angular Visual Studio Cordova Project

This topic contains 1 reply, has 2 voices, and was last updated by  lqbweb 8 years, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Visual Studio Cordova Project #88394

    rwade
    Participant

    Where in my project’s directory structure do I put the jqwidgets-ts folder to not get the error “Cannot find module @angular/core”. I have the @angular folder in my node-modules folder. I have the jdwidgets-ts folder currently in the scripts\typings folder.

    Thanks

    Visual Studio Cordova Project #88396

    lqbweb
    Participant

    You could place the jqwidgets-ts in your node-modules folder, to make automatic resolution work in typescript

    Have a look here:
    http://www.typescriptlang.org/docs/handbook/module-resolution.html

    If you put it somewhere else, you need to specify in the import the relative path from your tsconfig.json.

    Also, now you could link jqwidgets using npm in your package.json, as the typescript definitions are also there.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.