laravel-mix-typescript-example icon indicating copy to clipboard operation
laravel-mix-typescript-example copied to clipboard

Error in npm run watch

Open gsudhanshu opened this issue 4 years ago • 0 comments

as soon as I add

const helloWorld = require('./hello-world').helloWorld();

console.log(helloWorld);

to app.js, I get following error

ERROR in /home/sudhanshu/ws/hytech/EVA/chimedemo/tsconfig.json ./resources/js/hello-world.ts [tsl] ERROR TS18003: No inputs were found in config file 'tsconfig.json'. Specified 'include' paths were '["resources/assets/js/**/*"]' and 'exclude' paths were '[]'.

ERROR in ./resources/js/hello-world.ts Module build failed (from ./node_modules/ts-loader/index.js): Error: error while parsing tsconfig.json at Object.loader (/home/sudhanshu/ws/hytech/EVA/chimedemo/node_modules/ts-loader/dist/index.js:18:18)

webpack compiled with 2 errors

gsudhanshu avatar Feb 08 '21 13:02 gsudhanshu