ProgressNS / nativescript-ui-feedback

This repository is used for customer feedback regarding Telerik UI for NativeScript. The issues system here is used by customers who want to submit their feature requests or vote for existing ones.
Other
115 stars 21 forks source link

Cannot compile when using scoped packages #1353

Open PeterStaev opened 4 years ago

PeterStaev commented 4 years ago

Please take a minute to read our NativeScript Code of Conduct before proceeding with posting issues or discussing. The purpose of this guide is to make communication and cooperation within our forums a pleasure for you and the other members.

Please, provide the details below:

Tell us about the problem

Have a project that has @nativescript/core as reference instead of tns-core-modules. Project cannot compile due to internal reference of tns-core-modules:

ERROR in /Users/peter/Documents/NativeScriptProjects/SwyftCG/node_modules/nativescript-ui-autocomplete/index.d.ts
ERROR in /Users/peter/Documents/NativeScriptProjects/SwyftCG/node_modules/nativescript-ui-autocomplete/index.d.ts(3,33):
TS2307: Cannot find module 'tns-core-modules/data/observable-array'.

ERROR in /Users/peter/Documents/NativeScriptProjects/SwyftCG/node_modules/nativescript-ui-listview/index.d.ts
ERROR in /Users/peter/Documents/NativeScriptProjects/SwyftCG/node_modules/nativescript-ui-listview/index.d.ts(1,57):
TS2307: Cannot find module 'tns-core-modules/ui/core/view'.

ERROR in /Users/peter/Documents/NativeScriptProjects/SwyftCG/node_modules/nativescript-ui-listview/index.d.ts
ERROR in /Users/peter/Documents/NativeScriptProjects/SwyftCG/node_modules/nativescript-ui-listview/index.d.ts(2,35):
TS2307: Cannot find module 'tns-core-modules/data/observable'.

ERROR in /Users/peter/Documents/NativeScriptProjects/SwyftCG/node_modules/nativescript-ui-listview/index.d.ts
ERROR in /Users/peter/Documents/NativeScriptProjects/SwyftCG/node_modules/nativescript-ui-listview/index.d.ts(3,23):
TS2307: Cannot find module 'tns-core-modules/color'.

ERROR in /Users/peter/Documents/NativeScriptProjects/SwyftCG/node_modules/nativescript-ui-listview/index.d.ts
ERROR in /Users/peter/Documents/NativeScriptProjects/SwyftCG/node_modules/nativescript-ui-listview/index.d.ts(4,33):
TS2307: Cannot find module 'tns-core-modules/data/observable-array'.

ERROR in /Users/peter/Documents/NativeScriptProjects/SwyftCG/node_modules/nativescript-ui-listview/index.d.ts
ERROR in /Users/peter/Documents/NativeScriptProjects/SwyftCG/node_modules/nativescript-ui-listview/index.d.ts(5,36):
TS2307: Cannot find module 'tns-core-modules/ui/layouts/stack-layout'.

ERROR in /Users/peter/Documents/NativeScriptProjects/SwyftCG/node_modules/nativescript-ui-sidedrawer/index.d.ts
ERROR in /Users/peter/Documents/NativeScriptProjects/SwyftCG/node_modules/nativescript-ui-sidedrawer/index.d.ts(1,27):
TS2307: Cannot find module 'tns-core-modules/data/observable'.

ERROR in /Users/peter/Documents/NativeScriptProjects/SwyftCG/node_modules/nativescript-ui-sidedrawer/index.d.ts
ERROR in /Users/peter/Documents/NativeScriptProjects/SwyftCG/node_modules/nativescript-ui-sidedrawer/index.d.ts(2,32):
TS2307: Cannot find module 'tns-core-modules/ui/core/view'.

ERROR in /Users/peter/Documents/NativeScriptProjects/SwyftCG/node_modules/nativescript-ui-sidedrawer/index.d.ts
ERROR in /Users/peter/Documents/NativeScriptProjects/SwyftCG/node_modules/nativescript-ui-sidedrawer/index.d.ts(3,23):
TS2307: Cannot find module 'tns-core-modules/ui/page'.

ERROR in /Users/peter/Documents/NativeScriptProjects/SwyftCG/node_modules/nativescript-ui-sidedrawer/index.d.ts
ERROR in /Users/peter/Documents/NativeScriptProjects/SwyftCG/node_modules/nativescript-ui-sidedrawer/index.d.ts(4,30):
TS2307: Cannot find module 'tns-core-modules/color'.

Which platform(s) does your issue occur on?

BOTH

Please provide the following version numbers that your issue occurs with:

Please tell us how to recreate the issue in as much detail as possible.

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.

(You can paste entire code snippets, link to playground demo or attach a runnable project)