Stuck at loading + Cannot read property 'env' of undefined
See original GitHub issueHi,
I’ve been scratching my head for a while now and simply cannot figure out what is going wrong. I am using the component inside a webview in VS Code and for testing purposes permitted it to fetch the source from CDN. All is fine and dandy till that. But then I get stuck at watching the loading screen. In the dev tools console, there is a single error, stating that Cannot read property 'env' of undefined
. When looking into it more carefully with the webview dev tools, it shows me the following:
which refers to:
I am using esbuild for both buildint the react application and the extension using config: `async function build() { let entryPoints = await glob(“./ext-src/*.ts”); return esbuild.build({ entryPoints: [‘src/index.jsx’], outfile: ‘build/static/js/index.js’, loader: {‘.js’: ‘jsx’, “.svg”: “dataurl”, “.png”: “dataurl”, “.ttf”: “dataurl”}, bundle: true, sourcemap: true, watch: true, format: “cjs”, platform: “browser”, target: “es2019”,
}).then(() => {
return esbuild.build({
entryPoints: entryPoints,
outdir: 'build/ext-src',
watch: true,
platform: "node",
target: "es2019",
format: "cjs",
sourcemap: true,
bundle: true,
external: ["vscode"]
})
})
}; `
The same happens when trying to use the source from locally installed npm package.
What am I doing wrong?
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (3 by maintainers)
Top GitHub Comments
As an update. I’ve been quite busy for the past two weeks and haven’t had yet time for this. Hopefully soon I’ll get the reproduction done.
Huh, well then this is even more curious and I admit I’m fascinated by the issue in that case. I’ll see if I can reproduce is with as minimal project as possible.