-
-
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
"external_defu_default(...) is not a function" when defining axios create method in plugin #455
Comments
In the provided example for me its just infinite loop into plugin with printing console.log from it. Its caused by defu error, but for some reason that error in plugin cause infinite loop ( possible another issue?). To get defu error need wrap axios.create from plugin into try catch e.g. like this
which will produce following error:
|
I have the same problem
|
insatlling defu doesn't solve the problem on
|
confirmed, for the latest build @nuxt/bridge downgrade for defu - not working :(( |
im finded solution unjs/defu#81 (comment) |
Environment
Darwin
v14.19.3
2.16.0-27616340.013f051b
[email protected]
webpack
head
,ssr
,css
,plugins
,components
,buildModules
,modules
,axios
,dayjs
,vuetify
,publicRuntimeConfig
,privateRuntimeConfig
,storybook
,i18n
,build
,router
,serverHandlers
,devServerHandlers
,bridge
@nuxtjs/[email protected]
,8n
,@nuxtjs/[email protected]
()
,@nuxtjs/[email protected]
,@nuxtjs/[email protected]
,@pinia/[email protected]
,@nuxt/[email protected]
Reproduction
https://codesandbox.io/s/confident-wildflower-cjzhey
Describe the bug
I've set a plugin :
On dev mode everything's fine but when I build and start, I got this error :
Line 22020 is :
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: