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):
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
Hi @mukaschultze, thanks for reporting this. We are preparing a patch addressing this breaking change. Meanwhile, could you please share the plugins you've found broken by this? Thanks!
@tbozhikov nativescript-material-bottomsheet is the only plugin I've found to be broken so far
nativescript-masked-textfield is also broken. it looks for _nativescript-angular/forms/value-accessors/text-value-accessor_ which is missing from nativescript-angular package.
The Jasmine import is also to be corrected.
The file zone-js/testing.jasmine.ts seems to point to the wrong location:
require("@nativescript/angular/dist/zone-nativescript.jasmine.js");This should actually be @nativescript/angular/zone-js/dist/zone-nativescript.jasmine.js.
Most helpful comment
@tbozhikov
nativescript-material-bottomsheetis the only plugin I've found to be broken so far