-
-
Notifications
You must be signed in to change notification settings - Fork 318
Description
npm run build:mac
trafexia@1.0.0 build:mac
vue-tsc --noEmit && vite build && electron-builder --mac
The CJS build of Vite's Node API is deprecated. See https://vite.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
vite v5.4.21 building for production...
(node:44837) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
(Use node --trace-warnings ... to show where the warning was created)
[Failed to load PostCSS config: Failed to load PostCSS config (searchPath: /Users/duonghungkiet/Developer/trafexia): [SyntaxError] Unexpected token 'export'
/Users/duonghungkiet/Developer/trafexia/postcss.config.js:1
export default {
^^^^^^
SyntaxError: Unexpected token 'export'
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1195:20)
at Module._compile (node:internal/modules/cjs/loader:1239:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1329:10)
at Module.load (node:internal/modules/cjs/loader:1133:32)
at Module._load (node:internal/modules/cjs/loader:972:12)
at ModuleWrap. (node:internal/modules/esm/translators:165:29)
at ModuleJob.run (node:internal/modules/esm/module_job:193:25)]
Node.js v19.9.0
===
I fixed and built successfully by replacing "export default" with "module.exports =".
