Skip to content
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

Webpack can't resolve overlay #8

Open
HatemMn opened this issue May 10, 2023 · 1 comment
Open

Webpack can't resolve overlay #8

HatemMn opened this issue May 10, 2023 · 1 comment

Comments

@HatemMn
Copy link

HatemMn commented May 10, 2023

After taking a look at the React Notebook sample, available here

I mimicked the code they used to my own project, which is a notebook visualiser by the way, ( as I was not able to make React work ) but it did not work for me because of a Webpack error that happened :

`ERROR in ./node_modules/vscode-notebook-error-overlay/dist/index.js 4:0-48
Module not found: Error: Can't resolve './overlay' in 'C:...\project\node_modules\vscode-notebook-error-overlay\dist'
resolve './overlay' in 'C:...\project\node_modules\vscode-notebook-error-overlay\dist'
using description file: C:...\project\node_modules\vscode-notebook-error-overlay\package.json (relative path: ./dist)
Field 'browser' doesn't contain a valid alias configuration
using description file: C:...\project\node_modules\vscode-notebook-error-overlay\package.json (relative path: ./dist/overlay)
no extension
Field 'browser' doesn't contain a valid alias configuration
.tsx
Field 'browser' doesn't contain a valid alias configuration
C:...\project\node_modules\vscode-notebook-error-overlay\dist\overlay.tsx doesn't exist
.css
Field 'browser' doesn't contain a valid alias configuration
C:...\project\node_modules\vscode-notebook-error-overlay\dist\overlay.css doesn't exist
as directory
C:...\project\node_modules\vscode-notebook-error-overlay\dist\overlay doesn't exist
@ ./src/renderer/index.tsx 3:0-57 44:12-29

webpack 5.82.0 compiled with 1 error in 2057 ms`

@ChuckJonas
Copy link

ChuckJonas commented Dec 20, 2023

just tried the official yo code project starter and got a similar error:

Cannot find module 'vscode-notebook-error-overlay'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?

Based on how buggy vscode notebooks are, seems like Microsoft has abandoned them :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants