EddyVerbruggen / nativescript-bluetooth-demo

30 stars 21 forks source link

Build Failed on Android Can't resolve '.\app.ts' #26

Open ibnuzaini opened 5 years ago

ibnuzaini commented 5 years ago

Preparing project... Starting type checking service... Using 1 worker with 4096MB memory limit

Insufficient number of arguments or no entry found. Alternatively, run 'webpack(-cli) --help' for usage info.

Hash: 675504620d84494291b8 Version: webpack 4.27.1 Time: 19145ms Built at: 09/02/2019 8:16:43 PM Asset Size Chunks Chunk Names package.json 914 bytes [emitted] res/next.png 1.68 KiB [emitted] res/signal-strength.png 2.82 KiB [emitted] res/telerik-logo.png 41.8 KiB [emitted] tns-java-classes.js 0 bytes [emitted]

ERROR in Entry module not found: Error: Can't resolve '.\app.ts' in 'C:\Users\Local\nativescript-bluetooth-demo\Bluetooth\app' Webpack compilation complete. Executing webpack failed with exit code 2.

What should I do

jimkiely-brainiacdevs commented 5 years ago

I have the same issue.

lessabruno commented 5 years ago

I resolved this, changing webpack.config.js to point to ".\app.js"

const entryPath = .${sep}${entryModule}.js;