Code Monkey home page Code Monkey logo

Comments (9)

Dave136 avatar Dave136 commented on June 6, 2024 2

@linspw the error is because i'm compiling including the vue-i18n dependency, to fix that i already added vue-i18n as external dependency.

In this way, if anyone want to use the i18n feature must be to install vue-i18n.

This would be fixed in the next beta release that i'm working on it

from vue-email.

Dave136 avatar Dave136 commented on June 6, 2024 1

@linspw thanks a lot for this solution! I'll be working to fix that error.

from vue-email.

linspw avatar linspw commented on June 6, 2024 1

Great @Dave136 , this is perfect, thanks for your help and attention!

from vue-email.

linspw avatar linspw commented on June 6, 2024

Same problem

from vue-email.

ChronicStone avatar ChronicStone commented on June 6, 2024

I've tried a lot of approaches to solve this, use vite to define VUE_PROD_DEVTOOLS, use the classic Node SDK, and a few other things, but nothing seem to let me go around this.

Also nuxt module devtool isn't working, but there's already an issue opened for this : #93

from vue-email.

linspw avatar linspw commented on June 6, 2024

The issue arises when NODE_ENV is set to 'production' in my Express server environment. We need a solution similar to the following (though I'm unsure how to implement it in a simple TypeScript repository):

// https://github.com/intlify/vue-i18n-next/issues/789#issuecomment-1356782726
export default defineConfig({
  base: './',
  resolve: {
    alias: {
      // ...
      'vue-i18n': 'vue-i18n/dist/vue-i18n.runtime.esm-bundler.js',
    },
  },
})

intlify/vue-i18n#789

image

from vue-email.

linspw avatar linspw commented on June 6, 2024

Solution for rollup:
https://github.com/PeterAlfredLee/vue-i18n-next/blob/ede3da6faded4f6a990bf14c5e28f78147154eb7/docs/guide/advanced/optimization.md?plain=1#L57

image

from vue-email.

Dave136 avatar Dave136 commented on June 6, 2024

@ChronicStone the issue with the devtools is already fixed, soon I'll be launch the next beta release with a lot of fixed issues.

from vue-email.

linspw avatar linspw commented on June 6, 2024

In typescript I made a fast fixing using:

global.__VUE_PROD_DEVTOOLS__ = false;

but it doesn't seem like the best way

from vue-email.

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.