Quando configurei o compilador e executei com "npm run server", está dando o erro abaixo:
> alurabank@1.0.0 server
> lite-server --baseDir=dist
Did not detect a `bs-config.json` or `bs-config.js` override file. Using lite-server defaults...
** browser-sync config **
{
injectChanges: false,
files: [ './**/*.{html,htm,css,js}' ],
watchOptions: { ignored: 'node_modules' },
server: {
baseDir: 'dist',
middleware: [ [Function (anonymous)], [Function (anonymous)] ]
}
}
[Browsersync] Access URLs:
--------------------------------------
Local: http://localhost:3000
External: http://192.168.0.106:3000
--------------------------------------
UI: http://localhost:3001
UI External: http://localhost:3001
--------------------------------------
[Browsersync] Serving files from: dist
[Browsersync] Watching files...
23.08.03 18:18:57 304 GET /index.html
23.08.03 18:18:57 304 GET /css/bootstrap.css
23.08.03 18:18:57 404 GET /js/app.js
estou usando o node versão 16.13
tscofing.json
{
"compilerOptions": {
"outDir": "dist/js",
"target": "ES5"
},
"include": ["app/**/*"]
}
Código do package.json
{
"name": "alurabank",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"server": "lite-server --baseDir=dist",
"start": "concurrently \"npm run watch\" \"npm run server\"",
"compiler":"tsc"
},
"author": "",
"license": "ISC",
"devDependencies": {
"concurrently": "^6.0.0",
"lite-server": "^2.6.1",
"typescript": "^4.2.2"
}
}