
Pablo Nicolás Alonso
PreguntaTengo un problema. Cuando hago npm run build en mi consola de vs code me lo compila sin ningun error, pero a la hora de hacer deploy en netlify me da un error luego de usa el npm run build.
3:48:36 PM: > webpack --config webpack.config.js 3:48:41 PM: [webpack-cli] [Error: EISDIR: illegal operation on a directory, open '/opt/build/repo/dist/index.html/'] { 3:48:41 PM: errno: -21, 3:48:41 PM: code: 'EISDIR', 3:48:41 PM: syscall: 'open', 3:48:41 PM: path: '/opt/build/repo/dist/index.html/' 3:48:41 PM: } 3:48:41 PM: npm ERR! code ELIFECYCLE 3:48:41 PM: npm ERR! errno 2 3:48:41 PM: npm ERR! webpack-react@1.0.0 build: `webpack --config webpack.config.js` 3:48:41 PM: npm ERR! Exit status 2 3:48:41 PM: npm ERR! 3:48:41 PM: npm ERR! Failed at the webpack-react@1.0.0 build script. 3:48:41 PM: npm ERR! This is probably not a problem with npm. There is likely additional logging output above. 3:48:41 PM: npm ERR! A complete log of this run can be found in: 3:48:41 PM: npm ERR! /opt/buildhome/.npm/_logs/2021-05-03T18_48_41_748Z-debug.log 3:48:41 PM: ──────────────────────────────────────────────────────────────── 3:48:41 PM: "build.command" failed 3:48:41 PM: ──────────────────────────────────────────────────────────────── 3:48:41 PM: 3:48:41 PM: Error message 3:48:41 PM: Command failed with exit code 2: npm run build 3:48:41 PM: 3:48:41 PM: Error location 3:48:41 PM: In Build command from Netlify app: 3:48:41 PM: npm run build 3:48:41 PM: 3:48:41 PM: Resolved config 3:48:41 PM: build: 3:48:41 PM: command: npm run build 3:48:41 PM: commandOrigin: ui 3:48:41 PM: publish: /opt/build/repo/dist