Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit 196d977

Browse files
author
Fatme
authored
fix: fix "ERROR in Must have a source file to refactor." error from ngCompilerPlugin on test command (#859)
1 parent 9020c47 commit 196d977

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: templates/webpack.angular.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ module.exports = env => {
8888
const ngCompilerPlugin = new AngularCompilerPlugin({
8989
hostReplacementPaths: nsWebpack.getResolver([platform, "tns"]),
9090
platformTransformers: ngCompilerTransformers.map(t => t(() => ngCompilerPlugin, resolve(appFullPath, entryModule))),
91-
mainPath: resolve(appPath, entryModule),
91+
mainPath: join(appFullPath, entryModule),
9292
tsConfigPath: join(__dirname, tsConfigName),
9393
skipCodeGeneration: !aot,
9494
sourceMap: !!sourceMap,

0 commit comments

Comments
 (0)