- Site name: cool-mooncake-f954aa.netlify.app
- Custom domain: https://loquierasono.democracia.com.es/
- Failed deploy log: Netlify App
Hello, I’m taking my first steps in Netlify. Trying to deploy an Astro/React app. I got an error during deploy, at yarn run build
execution.
yarn run build
works properly at local, but fails in Netlify.
The error happens when trying to import @nanostores/react
Import {usestore} from '@nanostores/react';
Error:
11:16:54 AM: 10:16:54 [ERROR] [vite] [vite]: Rollup failed to resolve import "@nanostores/react" from "/opt/build/repo/src/components/Fiber.jsx".
11:16:54 AM: This is most likely unintended because it can break your application at runtime.
11:16:54 AM: If you do want to externalize this module explicitly add it to
11:16:54 AM: `build.rollupOptions.external`
Any help appreciated. Thanks.