Skip to content

Commit 6545432

Browse files
Vasil ChimevVasil Chimev
Vasil Chimev
authored and
Vasil Chimev
committed
Update appComponents path to activity
Workaround of ``` ERROR in ./main.ts Module not found: Error: Can't resolve 'C:Users chimevWorkgitandroid-extend-ngappactivity.andr @ ./main.ts 5:0-78 Webpack compilation complete. ``` on Windows.
1 parent 3eb16ac commit 6545432

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webpack.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = env => {
1616
const appComponents = [
1717
"tns-core-modules/ui/frame",
1818
"tns-core-modules/ui/frame/activity",
19-
resolve(__dirname, "app/activity.android.ts"),
19+
"./activity.android.ts",
2020
];
2121

2222
const platform = env && (env.android && "android" || env.ios && "ios");
@@ -51,7 +51,7 @@ module.exports = env => {
5151
const appResourcesFullPath = resolve(projectRoot, appResourcesPath);
5252

5353
const entryModule = aot ?
54-
nsWebpack.getAotEntryModule(appFullPath) :
54+
nsWebpack.getAotEntryModule(appFullPath) :
5555
`${nsWebpack.getEntryModule(appFullPath)}.ts`;
5656
const entryPath = `.${sep}${entryModule}`;
5757

0 commit comments

Comments
 (0)