-
-
Notifications
You must be signed in to change notification settings - Fork 241
Closed
Labels
Description
Environment
{N} 6.2
Describe the bug
Webpack compilation breaks with the following error
> [19-11-08 12:51:30.982] (CLI) ERROR in @nativescript/angular/common.ts(26,9): Error during template compile of 'NativeScriptCommonModule'
> [19-11-08 12:51:30.982] (CLI) Could not resolve tns-core-modules/ui/frame relative to [object Object]. in 'defaultFrameProvider'
> [19-11-08 12:51:30.982] (CLI) 'defaultFrameProvider' contains the error at @nativescript/angular/platform-providers.ts(44,48).
>
Expected behavior
To compile without any problems
Additional context
This file is causing the problem as it still tries to import from tns-core-modules instead of @nativescript/core.
import { Frame } from "tns-core-modules/ui/frame"; | |
import { View } from "tns-core-modules/ui/core/view"; | |
import { Page } from "tns-core-modules/ui/page"; | |
import { device, Device } from "tns-core-modules/platform"; |