Skip to content

Not all modules from @nativescript/angular are exported to nativescript-angular #2059

Description

@mukaschultze

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: 6.2.0
  • Cross-platform modules: 6.2.0
  • Android Runtime: 6.2.0
  • iOS Runtime: 6.2.0
  • Plugin(s):
  • NativeScript-Angular: 8.20.1-rc-2019-11-08-175723-01
  • Angular: 8.2.0

Describe the bug

Modules like @nativescript/angular/app-host-view, @nativescript/angular/common/detached-loader, and @nativescript/angular/common/utils are not exported to nativescript-angular, this causes backwards incompatibility with some plugins.

To Reproduce

require("nativescript-angular/common/utils");

Causes the following error:

Module not found: Error: Can't resolve 'nativescript-angular/common/utils'

Expected behavior

nativescript-angular should export all modules from @nativescript/angular to keep backward compatibility.

Sample project

Additional context

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions