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
__vite_ssr_import_2__.default is not a function #68
Comments
same |
临时解决方法:
替换为
还有一处没有写入 不影响使用
|
Same |
Same |
2 similar comments
Same |
Same |
Which version of Nuxt 3 are you using? |
@RossComputerGuy my package.json
|
Use rc.1 for nuxt |
same with rc.1 |
Try building it and then run the server, you should get a more detailed error that way. |
Here is the full error
Reproduced with Node 16 on windows 10 using nuxt rc3. |
Same problem with Nuxt 3 rc.3 |
I think this is related to #63 |
same problem with me, i think this is only happen in windows ? |
No, I run Manjaro Linux and I've had this issue before. |
is there any solution ? i akready update to 0.2.2 but still not working |
afaics the whole shebang of this package can easily be replaced by simply installing https://vue-i18n.intlify.dev/ and adding a nuxt3 plugin by placing a file (e.g. called
|
Thanks @codeflorist, I went with your approach. For anyone looking to use
|
If are you using "vuetify", review the Vuetify Internationalization ... |
Why it is still not solved. 😔 |
It works on me, and I hope helps someone...
|
Same issue on freshly created project with "nuxt": "3.0.0-rc.4". |
I fix it finally after I shift all my project from win10(ver 2004) to Ubuntu distro via WSL on win10. you can check the WSL( Windows Sub Linux system ) https://docs.microsoft.com/windows/wsl/ so I think maybe some Intlify/nuxt3 deps packages only works on linux/darwin core. |
This looks like it is a windows only issue related to #63 |
Nah, I'm on Mac, same issue |
Hmmm, weird, what version of node & npm are you running? |
It's looks like working windows and mac. node version: 16.13.2
|
@erayturan |
for script setup, you can make import { useI18n as useI18nSrc } from 'vue-i18n'
export const useI18n = () => useI18nSrc() |
I tried it but it show |
still getting error "vite_ssr_import_2.default is not a function" with RC4 |
Same error and no solution working... |
same problem for me |
Guys I have solved this problem by @erayturan without using vuetify. Link of my open source project: https://github.com/anburocky3/developer-resources (Feel free to browse the code and check what i used to make it work.) |
Same issue on freshly created project with "nuxt": "3.0.0-rc.4". |
I have the same issue. How we can fix it? |
Seems to be OS specific. |
I created an empty Nuxt project
npx nuxi init nuxt-app
then I added a intlify/nuxt3
yarn add -D @intlify/nuxt3
// nuxt.config.ts
and i get an error
__vite_ssr_import_2__.default is not a function
my
package.json
The text was updated successfully, but these errors were encountered: