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
(gatsby-theme-docz): Custom webpack alias not recognized #1480
Comments
Not sure if it is the same error, but I had a small typo in my Going through the code, it seems they just resolve to NO_OP if they cannot succesfully const onCreateWebpackConfig = get(
gatsbyNodeCustom,
'onCreateWebpackConfig',
NO_OP,
)
return onCreateWebpackConfig(args) While the end result is fine with me, I feel this code should at least issue a warning that it couldn't read your file. That said it is probably easier said than done to issue a warning... |
@jesperorb Hej! I have fond memories of visiting Uppsala and buying Bamse comics to learn Swedish 😄
I was experiencing the same issue. My file structure looks like this:
and my
Because the custom Doing things that way smells a little fishy, but there you have it. Hope it helps! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Bug Report
Describe the bug
I am in the process of trying to migrate to
v2
and can't get custom webpack alias to work properly with Gatsby. I do not know if it is because of some strange thing in our custom setup or if it is the theme that is not picking up the config properly.In
v.1.2.0
we have the following config-property indoczrc.js
and it is working:And inside a typical component we have imports that looks like this:
With
2.3.2
I am trying to set up this withgatsby-node.js
instead and I can't get it to work:Trace
The
gatsby-node.js
-config produces the following output for every alias import, this is one of them:Expected behavior
Should not fail on imports where webpack alias is used or give a more descriptive error on what I should be looking for.
Environment
The text was updated successfully, but these errors were encountered: