Ainda não tem acesso? Estude com a gente! Matricule-se
Ainda não tem acesso? Estude com a gente! Matricule-se

npm run build-dev

Olá, quunado digito no console, na pasta client: npm run build-dev, e rodo, esta dando erro

2 respostas

Paulo tudo bem contigo?

Poderia informar qual erro está aparecendo?

Hash: 56f01361339dac9011cd Version: webpack 3.1.0 Time: 186ms Asset Size Chunks Chunk Names bundle.js 21.9 kB 0 [emitted] main [0] ./app-src/domain/negociacao/Negociacao.js 745 bytes {0} [built] [1] ./app-src/util/index.js 374 bytes {0} [built] [3] ./app-src/util/ConnectionFactory.js 1.46 kB {0} [built] [4] ./app-src/domain/negociacao/NegociacaoDao.js 2.15 kB {0} [built] [5] ./app-src/util/ApplicationException.js 552 bytes {0} [built] [6] ./app-src/util/HttpService.js 279 bytes {0} [built] [7] ./app-src/app.js 518 bytes {0} [built] [8] ./app-src/controllers/NegociacaoController.js 447 bytes {0} [built] [failed] [1 error] [9] ./app-src/domain/index.js 186 bytes {0} [built] [10] ./app-src/util/Bind.js 278 bytes {0} [built] [11] ./app-src/util/DaoFactory.js 271 bytes {0} [built] [13] ./app-src/util/decorators/Controller.js 1.15 kB {0} [built] [14] ./app-src/util/Obrigatorio.js 110 bytes {0} [built] [16] ./app-src/domain/negociacao/NegociacaoService.js 2.23 kB {0} [built] [17] ./app-src/domain/negociacao/Negociacoes.js 489 bytes {0} [built]

+ 3 hidden modules

ERROR in ./app-src/controllers/NegociacaoController.js Module parse failed: /Users/yagosilva/Desktop/A/WebPack/projeto-webpack/client/app-src/controllers/NegociacaoController.js Unexpected character '@' (5:0) You may need an appropriate loader to handle this file type. | import { getNegociacaoDao, Bind, getExceptionMessage, debounce, controller, bindEvent } from '../util/index.js'; | | @controller('#data', '#quantidade', '#valor') | export class NegociacaoController { | @ ./app-src/app.js 1:0-77

ERROR in bundle.js from UglifyJs Unexpected token: name (Negociacao) [bundle.js:74,6] npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! client@1.0.0 build-prod: webpack -p --config webpack.config.js npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the client@1.0.0 build-prod script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/yagosilva/.npm/logs/2019-08-16T2246_29_460Z-debug.log MacBook-Pro-de-Yago:client yagosilva$