e-chan1007 / nuxt-monaco-editor

Integrate monaco-editor with Nuxt
https://e-chan1007.github.io/nuxt-monaco-editor
MIT License
119 stars 16 forks source link

Failed to resolve import "__LOCALE_DATA_PATH__" #54

Closed rotsee closed 6 months ago

rotsee commented 6 months ago

When adding this module to a Nuxt 3.11 project with no module config, I get the following error message:

[plugin:vite:import-analysis] Failed to resolve import "__LOCALE_DATA_PATH__" from "node_modules/nuxt-monaco-editor/dist/runtime/nls.mjs?v=bbcb84bd". Does the file exist?

<PROJECT_PATH>/node_modules/nuxt-monaco-editor/dist/runtime/nls.mjs:1:25

1  |  import localeData from '__LOCALE_DATA_PATH__'
   |                          ^
2  |  
3  |  export function _format (message, args) {

Any clues on what might have gone wrong here?

rotsee commented 6 months ago

Closing this again as reinstalling everything worked, so something must have gone wrong during first install that I didn't notice