Skip to content

Invalid reference to "~/app" in @nativescript/webpack/helpers #2272

@lonerzzz

Description

@lonerzzz

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: 10.1.5
  • Cross-platform modules: N/A
  • Android Runtime: 7.0.0
  • iOS Runtime: 7.0.1
  • Plugin(s): N/A
  • NativeScript-Angular: 10.1.5
  • Angular: 10.1.5

Describe the bug
When building a project migrated to the latest NativeScript 7 and Angular 10 versions, the following error is generated during build:

Module not found: Error: Can't resolve '~/app' in '<project directory>\node_modules\@nativescript\webpack\helpers'

To Reproduce
No reproduction steps possible as this based on a fully formed project.

Expected behavior
The fundamental webpack code provided by NativeScript should not result in compile errors.

Sample project
None

Additional context
This is just a standard project without any special packaging structure so internal module errors in core Nativscript code is unexpected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions