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

Module ?worker has no exported member 'workerPath' #2728

Closed
realleocaster opened this issue Nov 4, 2020 · 1 comment
Closed

Module ?worker has no exported member 'workerPath' #2728

realleocaster opened this issue Nov 4, 2020 · 1 comment
Labels
ionitron: stale issue This issue has not seen any activity for a long period of time

Comments

@realleocaster
Copy link

Stencil version:

 @stencil/core@2.0.3

I'm submitting a:

[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/

Current behavior:
workerPath is not exported when trying to import from "myworker.ts?worker"

Expected behavior:
workerPath is defined and one can instantiate new web workers using the path

Steps to reproduce:

import { workerPath } from "myworker.worker.ts?worker";

let worker = new Worker(workerPath);

[ ERROR ] TypeScript: ./src/components/....tsx:3:10
Module '"*?worker"' has no exported member 'workerPath'.

  L3:  import { workerPath } from './myworker.worker.ts?worker';
@ionitron-bot ionitron-bot bot added the triage label Nov 4, 2020
@claviska claviska added bug and removed triage labels Nov 18, 2020
@ionitron-bot ionitron-bot bot added the ionitron: stale issue This issue has not seen any activity for a long period of time label Dec 18, 2020
@ionitron-bot
Copy link

ionitron-bot bot commented Dec 18, 2020

Thanks for the issue! This issue is being closed due to inactivity. If this is still an issue with the latest version of Stencil, please create a new issue and ensure the template is fully filled out.

Thank you for using Stencil!

@ionitron-bot ionitron-bot bot closed this as completed Dec 18, 2020
@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Dec 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ionitron: stale issue This issue has not seen any activity for a long period of time
Projects
None yet
Development

No branches or pull requests

2 participants