Felipe-PS-95/jetstrap-mod

error after npm run

Opened this issue · 0 comments

I know this package it is for Laravel 9 but if could help with Laravel 10...

When run
npm run build

build
vite build

vite v4.4.9 building for production...
✓ 15 modules transformed.
✓ built in 496ms
[vite:css] Failed to load PostCSS config (searchPath: /Users/jose/Web/jetstream-bootstrap): [Failed to load PostCSS config] Failed to load PostCSS config (searchPath: /Users/jose/Web/jetstream-bootstrap): [ReferenceError] module is not defined in ES module scope
This file is being treated as an ES module because it has a '.js' file extension and '/Users/jose/Web/jetstream-bootstrap/package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.
ReferenceError: module is not defined in ES module scope
This file is being treated as an ES module because it has a '.js' file extension and '/Users/jose/Web/jetstream-bootstrap/package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.
at file:///Users/jose/Web/jetstream-bootstrap/postcss.config.js:1:1
at ModuleJob.run (node:internal/modules/esm/module_job:192:25)
at async DefaultModuleLoader.import (node:internal/modules/esm/loader:228:24)
at async importDefault (file:///Users/jose/Web/jetstream-bootstrap/node_modules/vite/dist/node/chunks/dep-df561101.js:36522:18)
at async Object.search (file:///Users/jose/Web/jetstream-bootstrap/node_modules/vite/dist/node/chunks/dep-df561101.js:28958:38)

file: /Users/jose/Web/jetstream-bootstrap/resources/sass/app.scss
error during build:

Thanks
Jose