-
Notifications
You must be signed in to change notification settings - Fork 32
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
'shiftCommand.js not found' + 'Duplicate definition of module shiftCommand' #99
Comments
Just for kicks I decided just now to try creating the '/vs/editor/common/commands/
But everything else still seems to be working fine, and I refreshed about a hundred times and didn't get the duplicate definition error. I suppose it's a good enough workaround for now. |
Seems like you are using AMD / requirejs type loader. Did you follow the amd instructions in the readme. Or could you paste the code snippet of how you are loading monaco vim |
I am using AMD loader, yeah, but not for any reason. Since this is my first Electron project, I have no preference, AMD seems like the first that most guides recommend, so I went with that. Here is a gist of my Monaco From what I can tell, I followed the instructions exactly. It's likely user error, due to my lack of understanding of how node modules work, but I would appreciate it if you had any advice or ideas of how to fix it. Edit: Forgot to mention, I do have the monaco-editor loader up a bit higher in it's own
|
I stepped away from this project for awhile, still haven't been able to quite figure it out. |
Today I started a blank project with At first, I thought it was working. I could run Until it wasn't, the error came back. I reloaded and it was gone again. Reloaded a few more times and sometimes it's there, and sometimes the console log is empty like everything is fine. Keep in mind at this point I haven't changed the Something weird is happening and I have NO CLUE what it is. There's no example |
New discovery: Everything works perfectly fine when using the |
Did you ever find a definitive solution? Neither |
Hi, I've got monaco-vim implemented exactly how it is in the demo, but I am running into a few issues.
Firstly, on every launch I am getting this error in my JS console:
However, everything still appears to work, regardless of this error. I'm not totally sure what this error means, but I have verified myself that the folder it's searching for
shiftCommand.js
doesn't even exist. It is located in/esm/vs/editor/common/commands/shiftCommand.js
whereas, per the error message, it's looking in/min/vs/editor/common/commands/shiftCommand.js
even though there is nocommon
folder in/min/vs/editor
Secondly, I occasionally get a different error, and this one actually causes monaco to not load at all and just gives me a white screen, sometimes requiring me to reload several times before it will work
It seems completely random when this happens, and sometimes I have to reload 3 or 4 times before it'll go away and work normally.
Something is up with shiftCommand and I'm not sure what or where to begin with fixing it. I'd appreciate any help.
I should state that I'm super new to Electron, Node, etc, so I barely know how I got this cobbled together. I'm used to Python and C so I'm a bit lost.
The text was updated successfully, but these errors were encountered: