-
-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic require of "vue" is not supported #42
Comments
This should work if you add |
I tried adding it to transpile, which also fails but now with an error because it tries to call "vue.extend" but the vue instance is undefined for some reason. It was also working until very recently, see for example #180 where @pi0 provided a nice workaround for some export problem. Can you please reopen this issue? Thanks! |
Up-to-date sandbox: https://stackblitz.com/edit/github-awmnqa. (Note that this is working fine with webpack.) |
The latest version appears to be working. |
Environment
Linux
v14.18.1
2.16.0-27329775.777a4b7f
[email protected]
Webpack
plugins
,bridge
,ssr
,target
,buildModules
-
@nuxt/[email protected]
Reproduction
https://codesandbox.io/s/loving-panka-09djh?file=/pages/index.vue
This was working in previous versions and only failed recently.
Describe the bug
Use a module/library that uses vue via
require('vue')
(in my case that'svue-tailwind
) and you get an error "Dynamic require of "vue" is not supported" in the browser console.Additional context
The problematic part of
vue-tailwind/dist/vue-tailwind.js
isLogs
The text was updated successfully, but these errors were encountered: