Monaco editor fails to resolve in my test #1806
Unanswered
BrendonLapp
asked this question in
Q&A
Replies: 2 comments 1 reply
-
|
I solved it by adding this alias inside the "test" object of defineConfig() in the vite.config file |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
I think this might have been solved in the newest version of |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I've been implementing vitest into our vite vue app recently and have ran into issues related to the Monaco Editor. I keep running into the following error:
Error: Failed to resolve entry for package "monaco-editor". The package may have incorrect main/module/exports specified in its package.json.and I'm not sure how to fix it? At this point I'm pretty confused on where to go from this? I Know there are a couple other answers about the monaco editor about but I can't seem to get the solutions there to work for me?
This is what my vitest.config.ts file looks like:
And I saw one post that said to add this:
But that also doesn't work for me what it's added to the
test: {}.How would I be able to resolve this?
I'm trying to do a simple test like the following:
Beta Was this translation helpful? Give feedback.
All reactions