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

Warning: Duplicate definition of module 'xyz' #115013

Closed
jrieken opened this issue Jan 26, 2021 · 4 comments
Closed

Warning: Duplicate definition of module 'xyz' #115013

jrieken opened this issue Jan 26, 2021 · 4 comments
Assignees
Labels
debt Code quality issues notebook

Comments

@jrieken
Copy link
Member

jrieken commented Jan 26, 2021

Testing #114969

While testing I have noticed these errors. That usually hints to a bundling problem, e.g some modules have been bundled multiple times

image

@rebornix rebornix added debt Code quality issues notebook labels Jan 26, 2021
@rebornix
Copy link
Member

Call stack of the first warning I'm seeing

s.defineModule	@	loader.js:1337
p	@	loader.js:1797
(anonymous)	@	fake:8
(anonymous)	@	fake:1
s.load	@	loader.js:693
s.load	@	loader.js:607
m	@	loader.js:1606
s._loadModule	@	loader.js:1618
s._resolve	@	loader.js:1703
s.defineModule	@	loader.js:1350
l	@	loader.js:1822
(anonymous)	@	simpleWorker.ts:373
initialize	@	simpleWorker.ts:371
_handleMessage	@	simpleWorker.ts:322
handleMessage	@	simpleWorker.ts:312
_handleMessage	@	simpleWorker.ts:140
handleMessage	@	simpleWorker.ts:108
onmessage	@	simpleWorker.ts:317
self.onmessage	@	workerMain.ts:34
(anonymous)	@	workerMain.ts:36
setTimeout (async)		
(anonymous)	@	workerMain.ts:29
s._safeInvokeFunction	@	loader.js:1089
s._invokeFactory	@	loader.js:1108
s.complete	@	loader.js:1121
s._onModuleComplete	@	loader.js:1747
s._resolve	@	loader.js:1707
s.defineModule	@	loader.js:1350
l	@	loader.js:1822
P	@	workerMain.ts:28
self.onmessage	@	workerMain.ts:51

@alexdima any idea what could possibly go wrong of how I use simple worker?

@alexdima
Copy link
Member

@rebornix I'm not sure where to look. Where do you bundle the worker? What steps do you do in vscode to load the worker? I haven't seen this when just opening a notebook.

@rebornix
Copy link
Member

rebornix commented Dec 8, 2022

I'm no longer seeing this error anymore. Closing it for now. Feel free to reopen if it still occurs.

@rebornix rebornix closed this as completed Dec 8, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Jan 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debt Code quality issues notebook
Projects
None yet
Development

No branches or pull requests

4 participants
@rebornix @jrieken @alexdima and others