monaco-editor-auto-typings icon indicating copy to clipboard operation
monaco-editor-auto-typings copied to clipboard

[BUG] Unable to resolve package names with '@'

Open Qfengx opened this issue 2 years ago • 3 comments

I think it should be caused by encoding the package name path when parsing the uri. use "import * as sdk '@weapp/ecodesdk'" is not ok. image you can see , " import * as sdk from '%40weapp/ecodesdk'" is ok. image

Qfengx avatar Jan 20 '22 09:01 Qfengx

Hi @Qfengx! This is a known bug (https://github.com/lukasbach/monaco-editor-auto-typings#known-limitations), which is caused by an issue on the side of monaco-editor (https://github.com/microsoft/monaco-editor/issues/2295). Scoped packages are currently not supported because of this.

lukasbach avatar Jan 20 '22 12:01 lukasbach

Hi @lukasbach

Thanks for your amazing work

I've worked trying to understand the problem and finally I found out.

I've submitted this PR to monaco-editor hoping it will be approved and merged soon

bsorrentino avatar Apr 04 '22 16:04 bsorrentino

@bsorrentino Thank you for your effort in investigating this and proposing a fix :)

I'm very much hoping for it to get merged on monaco-editor.

lukasbach avatar Apr 08 '22 17:04 lukasbach