Open WayneUong opened 1 year ago
Update: according to this forum post not using dynamic import of components solved one of the issues. However, these errors remain:
Warning: The --production flag should only be used to simulate production bundling for testing purposes. Use
meteor build to create a bundle for production deployment. See: https://guide.meteor.com/deployment.html
[[[[[ ~/Downloads/nfc-vue3 ]]]]]
=> Started proxy.
=> Started HMR server.
⚡️ Building packages to make them available to export analyzer...
⚡️ Packages built (23707.55ms)
⚡️ Building with Vite...
vite v3.2.5 building for production...
transforming...
✓ 33 modules transformed.
rendering chunks...
node_modules/.vite-meteor/dist/meteor-entry.js 295.17 KiB / gzip: 69.45 KiB
⚡️ Build successful (2016.09ms)
=> Started MongoDB.
=> Errors prevented startup:
While minifying app stylesheet:
app/client/main.css: While loading postcss config: Must use import to load ES Module:
/Users/wayneuong/Downloads/nfc-vue3/postcss.config.js
require() of ES modules is not supported.
require() of /Users/wayneuong/Downloads/nfc-vue3/postcss.config.js from
/Users/wayneuong/Downloads/nfc-vue3/node_modules/lilconfig/dist/index.js is an ES module file as it is a
.js file whose nearest parent package.json contains "type": "module" which defines all .js files in that
package scope as ES modules.
Instead rename postcss.config.js to end in .cjs, change the requiring code to use import(), or remove
"type": "module" from /Users/wayneuong/Downloads/nfc-vue3/package.json.
While minifying app stylesheet:
app/client/main.css: While loading postcss config: Must use import to load ES Module:
/Users/wayneuong/Downloads/nfc-vue3/postcss.config.js
require() of ES modules is not supported.
require() of /Users/wayneuong/Downloads/nfc-vue3/postcss.config.js from
/Users/wayneuong/Downloads/nfc-vue3/node_modules/lilconfig/dist/index.js is an ES module file as it is a
.js file whose nearest parent package.json contains "type": "module" which defines all .js files in that
package scope as ES modules.
Instead rename postcss.config.js to end in .cjs, change the requiring code to use import(), or remove
"type": "module" from /Users/wayneuong/Downloads/nfc-vue3/package.json.
=> Your application has errors. Waiting for file change.
=> Modified -- restarting.
=> Errors prevented startup:
While minifying app stylesheet:
app/client/main.css: While loading postcss config: Must use import to load ES Module:
/Users/wayneuong/Downloads/nfc-vue3/postcss.config.js
require() of ES modules is not supported.
require() of /Users/wayneuong/Downloads/nfc-vue3/postcss.config.js from
/Users/wayneuong/Downloads/nfc-vue3/node_modules/lilconfig/dist/index.js is an ES module file as it is a
.js file whose nearest parent package.json contains "type": "module" which defines all .js files in that
package scope as ES modules.
Instead rename postcss.config.js to end in .cjs, change the requiring code to use import(), or remove
"type": "module" from /Users/wayneuong/Downloads/nfc-vue3/package.json.
=> Your application has errors. Waiting for file change.
Guys I’m facing the same problems in production and I’m totally blocked! Any help please?
Just re-opening this one for the moment as we haven't quite yet gotten the latest changes into the official package.
Steps:
meteor create --vue nfc-vue3
meteor --production
or build withmeteor build --architecture=os.linux.x86_64 --server-only ./bundle