Skip to content

Platform add with framework path and custom version breaks run with "--bundle" #4077

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
KristianDD opened this issue Oct 29, 2018 · 0 comments
Assignees
Labels
Milestone

Comments

@KristianDD
Copy link
Contributor

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 5.0.0-2018-10-29-12521

Describe the bug
If platform is added with tns platform add <platform> --framework-path "....." and the version of the package is not available in npm, then tns run <platform> --bundle will fail with No matching version found for tns-<platform>@...

To Reproduce
1 Download tns-android/tns-ios tgz.
2 Modify version in package.json and repack
3 tns platform add <platform> --framework-path <path to modified package>
4 tns run <platform> --bundle

Additional context
Possibly caused by

private shouldPersistWebpackFiles(platform: string, projectData: IProjectData, prepareInfo: IPrepareInfo, appFilesUpdaterOptions: IAppFilesUpdaterOptions, nativePrepare: INativePrepare): boolean {

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

No branches or pull requests

3 participants