Skip to content

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

Closed
@KristianDD

Description

@KristianDD

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 {

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions