logaretm / vee-validate

✅ Painless Vue forms
https://vee-validate.logaretm.com/v4
MIT License
10.79k stars 1.26k forks source link

@vue/devtools-api/lib/cjs/index.js' does not provide an export named 'setupDevtoolsPlugin' (at vee-validate.esm.js:7:10) #4863

Closed 9mm closed 4 days ago

9mm commented 1 month ago

What happened?

There is an error in console:

Uncaught SyntaxError: The requested module '/_nuxt/@fs/Users/x/Code/y-frontend/node_modules/.pnpm/@vue+devtools-api@6.6.4/node_modules/@vue/devtools-api/lib/cjs/index.js' does not provide an export named 'setupDevtoolsPlugin' (at vee-validate.esm.js:7:10)Understand this error

I see further information here:

https://github.com/nuxt/nuxt/issues/27544#issuecomment-2168194904

Reproduction steps

  1. Use latest nuxt
  2. Use latest vee-validate

Version

Vue.js 3.x and vee-validate 4.x

What browsers are you seeing the problem on?

Relevant log output

No response

Demo link

n/a

Code of Conduct

murshex commented 1 week ago

I have same problem. Using pnpm

murshex commented 1 week ago

@logaretm

cybertino commented 1 week ago

Exactly the same issue

murshex commented 1 week ago

Best way to fix this without any side effects: https://github.com/nuxt/nuxt/issues/29381#issuecomment-2406635692

logaretm commented 4 days ago

I pushed a possible fix by defining export fields in package.json. I will verify if it works then update this issue.

logaretm commented 4 days ago

Seems fixed against the linked issue in Nuxt repo with vee-validate v4.14.0. Let me know if this isn't the case.

Change was in 97cebd83ad23e7eeb1fdf69acabd8e42814e1755

logaretm commented 4 days ago

Never mind this isn't fixed yet. It is not related to vee-validate, but to that particular version of the vue devtools. I will try upgrading it and see how much I need to change for that.