AddressForAll / site-v2

New AddressForAll website, version 3 of attempts to make it better
Apache License 2.0
1 stars 0 forks source link

npm run build problema #19

Closed crebollobr closed 2 years ago

crebollobr commented 2 years ago

histórico de comandos git clone https://github.com/AddressForAll/site-v2.git cd site-v2/ npm install npm run build

Erro


pm2@addressforall:/opt/teste2.addressforall.org/site-v2$ npm run build

> site-v2@0.1.0 build
> react-scripts build

Creating an optimized production build...
Failed to compile.

Module not found: Error: Can't resolve './pages/home' in '/opt/teste2.addressforall.org/site-v2/src'
elpbatista commented 2 years ago

Aquí puedes ver el mensaje en mi entorno de desarrollo local. Al parecer necesitas 'git pull' o clonar el repo nuevamente porque algo quedó sin descargar

pb@Cordelia site-v2 % npm run build

> site-v2@0.1.0 build
> react-scripts build

Creating an optimized production build...
Compiled successfully.

File sizes after gzip:

  52.1 kB  build/static/js/main.7d4896df.js
  2.12 kB  build/static/css/main.99a92e7b.css

The project was built assuming it is hosted at /.
You can control this with the homepage field in your package.json.

The build folder is ready to be deployed.
You may serve it with a static server:

  npm install -g serve
  serve -s build

Find out more about deployment here:

  https://cra.link/deployment

> site-v2@0.1.0 postbuild
> react-snap

✅  crawled 1 out of 4 (/)
⚠️  warning: 404 page title does not contain "404" string
✅  crawled 2 out of 4 (/404.html)
✅  crawled 3 out of 4 (/!)
✅  crawled 4 out of 4 (/about)
pb@Cordelia site-v2
crebollobr commented 2 years ago

versão atual do site estático, não precisa de procedimento de build