Giter VIP home page Giter VIP logo

Comments (7)

freddy38510 avatar freddy38510 commented on July 21, 2024 1

@NunoSav New release v4.7.0 is published.

Let me know if you have any issues.

from quasar-app-extension-ssg.

freddy38510 avatar freddy38510 commented on July 21, 2024

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.

NunoSav avatar NunoSav commented on July 21, 2024

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.

freddy38510 avatar freddy38510 commented on July 21, 2024

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.

NunoSav avatar NunoSav commented on July 21, 2024

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.

NunoSav avatar NunoSav commented on July 21, 2024

You were quick to fix this 🎉
When can i expect a new release/tag available?

from quasar-app-extension-ssg.

freddy38510 avatar freddy38510 commented on July 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.