Giter Club home page Giter Club logo

Comments (12)

devCrossNet avatar devCrossNet commented on May 24, 2024

heys @josaphatim.
I never tested it with node 17 and npm 8.

It's tested with node 12/14 and npm 6/7.

If you can downgrade to one of these versions it should be fine.

Best,
Johannes

from vuesion.

josaphatim avatar josaphatim commented on May 24, 2024

Thanks @devCrossNet, let me try.

from vuesion.

belov38 avatar belov38 commented on May 24, 2024

Had the same issues.
Try this to install nuxt globally

npm install -g nuxt

Then remove NODE_ICU_DATA=node_modules/full-icu from the start of npm scripts
e.x.:
before: "dev": "NODE_ICU_DATA=node_modules/full-icu nuxt -o",
after: "dev": "nuxt -o"

PS: It seems only windows-platform issue

from vuesion.

devCrossNet avatar devCrossNet commented on May 24, 2024

but please keep in mind that full-icu is needed to render date formats, etc. on the server-side. if you remove it, it can lead to hydration errors when using vue-i18n.

from vuesion.

josaphatim avatar josaphatim commented on May 24, 2024

I have tested it on windows using nodejs 14 but got the same error

from vuesion.

devCrossNet avatar devCrossNet commented on May 24, 2024

can you try the workaround from @belov38 ?

from vuesion.

devCrossNet avatar devCrossNet commented on May 24, 2024

I have no windows system to replicate the error. what does the error message say translated into English? maybe, it's an issue with the ENV variable on windows. I didn't use cross-env in the scripts

from vuesion.

josaphatim avatar josaphatim commented on May 24, 2024

I try workaround from @belov38 it worked.

But that i'll be using full_icu for my projects.

Translated error message is: 'NODE_ICU_DATA' is not recognized as an internal or external executable program or a file of commands.

from vuesion.

devCrossNet avatar devCrossNet commented on May 24, 2024

@josaphatim thank you for the translation. I will look into this issue asap. I have the feeling it's something specific to windows that might be solved already in either the nuxt community or in the ICU docs.

from vuesion.

josaphatim avatar josaphatim commented on May 24, 2024

Thank you for help

from vuesion.

Loopios7 avatar Loopios7 commented on May 24, 2024

I have the same issue, I believe this is because NODE_ICU_DATA=node_modules/full-icu nuxt -o in windows will try to run NODE_ICU_DATA instead of setting the variable.
To set a variable in windows it uses SET VAR=VALUE.

I managed to get it running by changing the line in package.json to "dev": "SET NODE_ICU_DATA=node_modules/full-icu && nuxt -o"

from vuesion.

devCrossNet avatar devCrossNet commented on May 24, 2024

@Loopios7 can you do me the favour and try if https://www.npmjs.com/package/cross-env could be a viable option to support windows in this case? Then I will include it in the next update.

from vuesion.

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.