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 not found: Error: Can't resolve './protocol.js' #398

Closed
nevcos opened this issue Nov 12, 2019 · 1 comment
Closed

Module not found: Error: Can't resolve './protocol.js' #398

nevcos opened this issue Nov 12, 2019 · 1 comment

Comments

@nevcos
Copy link
Contributor

nevcos commented Nov 12, 2019

Getting the following error when building a project using webpack:
Module not found: Error: Can't resolve './protocol.js' in '(...)/node_modules/comlink/src'

This only happens when:

  • Using ts-loader with transpileOnly: true
  • Importing comlink source files directly like import {wrap} from "comlink/src/comlink"

The import fails because the file protocol.js doesn't exist, it should be protocol.ts (or just protocol). This affects all imports.

Versions:

Will create a PR in next minutes.

@jo4santos
Copy link

👍 !

@surma surma closed this as completed in ec67bf1 Nov 19, 2019
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

Successfully merging a pull request may close this issue.

2 participants