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

Doesn't work with Gatsby v3+ #4

Closed
aaronadamsCA opened this issue Oct 12, 2021 · 2 comments
Closed

Doesn't work with Gatsby v3+ #4

aaronadamsCA opened this issue Oct 12, 2021 · 2 comments

Comments

@aaronadamsCA
Copy link

This plugin doesn't appear to work with Gatsby 3 and up. Installing and enabling this plugin has no apparent effect.

This appears to be an upstream problem, since it looks like tsconfig-paths-webpack-plugin does not work with Webpack 5:

dividab/tsconfig-paths-webpack-plugin#76

@aaronadamsCA
Copy link
Author

Okay, I seem to have found my problem: it specifically doesn't work with require statements in gatsby-config.js. Since that was crashing it was blocking startup.

Once I eliminated the need to adjust that import, everything else is working great with Gatsby 3.

@Js-Brecht
Copy link
Owner

This plugin doesn’t use Webpack for anything.

Sounds like you are using ESM, if require doesn’t work.

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

No branches or pull requests

2 participants