You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 7, 2021. It is now read-only.
Describe the bug
We don't have the typescript dependency hardcoded in our templates anymore and we depend on the nativescript-dev-typescript postinstall script to generate it.
It seems that npm is executing the postintalls script in alphabetical order and the nativescript-dev-typescript plugin is generating the typescript dependency before the postintall script of nativescript-dev-webpack. In this way, everything is working as expected.
However, when the NativeScript CLI is used with yarn instead of npm, the postinstall scripts are run in parallell and the nativescript-dev-webpack plugin is copying the javascript webpack.config instead of the typescript one because the typescript dependency is still missing.
To Reproduce
npm i nativescript@next -g
tns package-manager set yarn
tns create typescriptBug --ts (the webpack plugin postinstall will copy the JavaScript templated instead of the TypeScript one)
tns run --bundle
Expected behavior
The app should run properly instead of getting "ERROR in Entry module not found: Error: Can't resolve './app.js' in '/typescriptBug/app'"
The text was updated successfully, but these errors were encountered:
Environment
Describe the bug
We don't have the typescript dependency hardcoded in our templates anymore and we depend on the
nativescript-dev-typescript
postinstall script to generate it.It seems that
npm
is executing the postintalls script in alphabetical order and the nativescript-dev-typescript plugin is generating the typescript dependency before the postintall script of nativescript-dev-webpack. In this way, everything is working as expected.However, when the NativeScript CLI is used with
yarn
instead of npm, the postinstall scripts are run in parallell and thenativescript-dev-webpack
plugin is copying thejavascript
webpack.config instead of thetypescript
one because the typescript dependency is still missing.To Reproduce
Expected behavior
The app should run properly instead of getting "ERROR in Entry module not found: Error: Can't resolve './app.js' in '/typescriptBug/app'"
The text was updated successfully, but these errors were encountered: