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

@types/loader-utils results in type issues #819

Closed
mydea opened this issue May 20, 2021 · 3 comments · Fixed by #831
Closed

@types/loader-utils results in type issues #819

mydea opened this issue May 20, 2021 · 3 comments · Fixed by #831

Comments

@mydea
Copy link
Contributor

mydea commented May 20, 2021

When trying to set this up for our typescript app, using latest versions of embroider, I get this error:

node_modules/@types/loader-utils/index.d.ts:12:10 - error TS2305: Module '"webpack"' has no exported member 'loader'.

12 import { loader } from 'webpack';

Which I guess is related to this:
webpack/loader-utils#179

Is it possible to drop @types/loader-utils?

@nightire
Copy link

Seeing this error after upgrade [email protected] with [email protected]:

image

@NullVoxPopuli
Copy link
Collaborator

this is the work-around I use: https://github.com/NullVoxPopuli/limber/blob/main/package.json#L24

in package.json#scripts: "postinstall": "rm -rf node_modules/@types/loader-utils"

@ef4 ef4 closed this as completed in #831 Jul 29, 2021
@NullVoxPopuli
Copy link
Collaborator

Confirmed fixed in: NullVoxPopuli/limber#219

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.

3 participants