Microsoft/monaco-editor
Ver no GitHub[Bug] The sample browser-esm-parcel is not working
Open
#2.966 aberto em 12 de fev. de 2022
bughelp wantedintegration
Métricas do repositório
- Stars
- (14.836 stars)
- Métricas de merge de PR
- (Mesclagem média 6h 26m) (15 fundiu PRs em 30d)
Description
Reproducible in vscode.dev or in VS Code Desktop?
- Not reproducible in vscode.dev or VS Code Desktop
Reproducible in the monaco editor playground?
- Not reproducible in the monaco editor playground
Monaco Editor Playground Code
The sample browser-esm-parcel is not working.
Steps to reproduce:
git clone git@github.com:microsoft/monaco-editor.git
cd monaco-editor
cd samples/browser-esm-parcel
npm install
npm start
Open browser to http://localhost:1234/ to view the web page served Parcel's dev server.
Open the dev console.
Actual Behavior
An empty box appears in the web page where the Monaco Editor should be rendered.
The following error is output to the dev console:
Uncaught TypeError: Cannot set property marked of #<Object> which has only a getter
at index.975ef6c8.js:117651:24
at index.975ef6c8.js:115678:72
at index.975ef6c8.js:115682:7
at Object.jVSjm.@parcel/transformer-js/src/esmodule-helpers.js (index.975ef6c8.js:117664:3)
at newRequire (index.975ef6c8.js:71:24)
at localRequire (index.975ef6c8.js:84:35)
at Object.5JIxC../dom.js (index.975ef6c8.js:113756:17)
at newRequire (index.975ef6c8.js:71:24)
at localRequire (index.975ef6c8.js:84:35)
at Object.6TtqN.../../../../base/browser/markdownRenderer.js (index.975ef6c8.js:113600:27)
Expected Behavior
I expect to see Monaco Editor working in the web page and no errors in the dev console.
Additional Context
No response