Skip to content

Using Webpack: BREAKING CHANGE: The request './components/VscodeTree' failed to resolve ... #213

@brodao2

Description

@brodao2

Sirs,

I migrated from @vscode-webtookit to @vscode-element.
In a development environment, my extension works without problems with @vscode-element, but for distribution I use WebPack.

When running webPack, I get the message below:

ERROR in ./node_modules/@vscode-elements/react-elements/dist/main.js 33:0-49
Module not found: Error: Can't resolve './components/VscodeTree' in 'W:\ws_tds_vscode\tds-webtoolkit\node_modules\@vscode-elements\react-elements\dist'       
Did you mean 'VscodeTree.js'?

BREAKING CHANGE: The request './components/VscodeTree' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.

Add the extension to the request.

Any suggestions on how to resolve it?

Grateful

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions