Coder Social home page Coder Social logo

Comments (10)

dwightjack avatar dwightjack commented on June 3, 2024 1

I see.

That's another issue I already found and was going to fix in the next few days.

Sorry for the problem, for now please don't use the shim. I will inform you as soon as the issue is fixed 🙇

from vue-types.

dwightjack avatar dwightjack commented on June 3, 2024 1

@Ttou I've published a first patch that should fix your issue in [email protected].

Let me know if it works.

from vue-types.

Ttou avatar Ttou commented on June 3, 2024 1

@dwightjack fixed

from vue-types.

dwightjack avatar dwightjack commented on June 3, 2024

Hello,

I am not completely sure why this is happening. You could try to configure the build following instructions for webpack 5 (use vue-types/shim as the path to shim).

Also, could you share the part of configuration where you set the shim?

from vue-types.

Ttou avatar Ttou commented on June 3, 2024

@dwightjack webpack 5 is fine, nuxt is using webpack4

from vue-types.

Ttou avatar Ttou commented on June 3, 2024

@dwightjack you mean use webpack5 config instead?

from vue-types.

dwightjack avatar dwightjack commented on June 3, 2024

The build behavior is strange. Nuxt still uses webpack 4 but the behaviour reported in the error suggests that the tool is trying to load vue-types like webpack 5 does.

I've created a demo installation and I cannot replicate the issue: https://github.com/dwightjack/demo-nuxt-vue-types

Re you using any particular setup (for example: nuxt-ts?).

from vue-types.

Ttou avatar Ttou commented on June 3, 2024

@dwightjack online example

from vue-types.

dwightjack avatar dwightjack commented on June 3, 2024

@Ttou so the issue might be related to the version of node you're using.

When setting the shim alias try one of the following:

'vue-types': 'vue-types/shim'

or

'vue-types': require.resolve('vue-types/shim')

I will update the docs in the next few days.

from vue-types.

Ttou avatar Ttou commented on June 3, 2024

another issue, when using custom validator, report error:
微信截图_20210727173017

from vue-types.

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.