Comments (7)
@NunoSav New release v4.7.0 is published.
Let me know if you have any issues.
from quasar-app-extension-ssg.
I tried to reproduce the issue with Node.js v18.14.0 and latest quasar packages, but couldn't.
Did you extend the Vite config ?
from quasar-app-extension-ssg.
Apologies, i forgot to mention that i changed vite version
"resolutions": {
"vite": "^4.0.0",
"@vitejs/plugin-vue": "^4.0.0",
"@rollup/plugin-node-resolve": "^13.0.6"
},
The only change i made to quasar.config.js
was related to vue-i18n vite plugin and it was this:
require('@intlify/unplugin-vue-i18n').default,
{
// if you want to use Vue I18n Legacy API, you need to set `compositionOnly: false`
// compositionOnly: false,
// you need to set i18n resource including paths !
include: path.resolve(__dirname, './src/i18n/**'),
},
from quasar-app-extension-ssg.
This is because of this breaking change in Vite.js v3 which compile the server entry to esm format instead of cjs.
You have to extend your vite Config this way:
extendViteConf(viteConf, { isServer }) {
viteConf.server.middlewareMode = true;
viteConf.server.appType = 'custom';
delete viteConf.build.polyfillModulePreload;
viteConf.build.modulePreload = { polyfill: true };
if (isServer) {
viteConf.ssr.format = 'cjs'; // revert to cjs
}
},
But there is still some issues. I will try to fix that and push a commit to support Vite/Rollup latest versions.
from quasar-app-extension-ssg.
I had tried a similar Vite config and it produces the same result (don't know if it happens on your side as well) which is libraries being built with CJS format also and that causes build to fail.
Thanks for your support !
from quasar-app-extension-ssg.
You were quick to fix this 🎉
When can i expect a new release/tag available?
from quasar-app-extension-ssg.
In a few minutes :) You can expect it in the next 24 hours.
I'm just pushing new commits not related to the support of Vite v3 and v4.
from quasar-app-extension-ssg.
Related Issues (20)
- Client only / SSG Dummy Data HOT 6
- Vite Failed to resolve entry for package "https" HOT 2
- Automatic patch of ES Module import HOT 2
- Cannot read properties of undefined [pinia store] HOT 1
- error when using meta HOT 1
- ssg gets fallback to SPA when router has query
- Render markdown to SSG HOT 1
- searchForWorkspaceRoot is not a function HOT 10
- Demo is no longer can be used as a template HOT 4
- Error [ERR_REQUIRE_ESM]: require() of ES Module inside quasar-app-extension-ssg's server-entry.js HOT 2
- pinia persisted state: storages (session storage) HOT 2
- I get the error message "Cannot find module 'ouch''" when running "quasar ssg dev" on freshly scaffolded quasar project HOT 3
- vue-loader & css-loader throwing errors HOT 12
- minifyOptions error? HOT 1
- Failed to add extension due to workbox-build version HOT 2
- Cannot find module `.cache/quasar-app-extension-ssg/server/server-entry.js` HOT 2
- `TypeError: Cannot read properties of undefined (reading 'get')` in `server-entry.js` during generation HOT 7
- Using Pinia from library results in `TypeError: can't access property "_s", pinia is undefined` HOT 3
- Empty data on all pages except one, when routes uses same component HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quasar-app-extension-ssg.