Content-Length: 209357 | pFad | https://github.com/NativeScript/nativescript-cli/issues/5515

B5 TNS7 CLI pulls TNS 8 Templates, causing broken builds · Issue #5515 · NativeScript/nativescript-cli · GitHub
Skip to content

TNS7 CLI pulls TNS 8 Templates, causing broken builds #5515

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
NathanaelA opened this issue Apr 9, 2021 · 0 comments · Fixed by #5517
Closed

TNS7 CLI pulls TNS 8 Templates, causing broken builds #5515

NathanaelA opened this issue Apr 9, 2021 · 0 comments · Fixed by #5517

Comments

@NathanaelA
Copy link
Contributor

NathanaelA commented Apr 9, 2021

Environment

  • CLI: 7.2.1

Describe the bug
If you do a tns create test (only tested js, ng, and vue -- probably happens with any flavor), it will pull the TNS 8 template which has the all new cool webpack config which unfortunately does not work with the webpack that TNS 7 is looking for as the cli passed to it is different.

Error reported is:

Preparing project...
[webpack-cli] Error: Unknown option '--env.externals=~/package.json'

To Reproduce
tns create test --js or tns create test --vue or tns create test --ng

Expected behavior
tns v7 should only pull a v7 template. (Tested: Tns v6 properly pulls only a v6 template).

Workaround
You can do a tns create test --template @nativescript/template-hello-world@7.0.4 to pull the latest 7.0 blank JS template. So if you lookup on npmjs you can find the latest 7.x template for tns7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/NativeScript/nativescript-cli/issues/5515

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy