laravel-mix-typescript-example
laravel-mix-typescript-example copied to clipboard
Error in npm run watch
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