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

fix: undefined loader is added into module.rules #80

Closed
wants to merge 1 commit into from

Conversation

clarkdo
Copy link
Contributor

@clarkdo clarkdo commented Jun 14, 2021

In Nuxt.js build with docus, we're setting error ERROR TypeError: Cannot read property 'request' of undefined, I found templateLoader is undefined but got added to webpack module.rules, so webpack is reading request from undefined load which will fail the build, this pr is adding not-null checking when insert templateLoader to module.rules

@clarkdo
Copy link
Contributor Author

clarkdo commented Jun 14, 2021

cc @harlan-zw

pi0 added a commit to nuxt/framework that referenced this pull request Jun 14, 2021
@harlan-zw
Copy link
Member

Thanks @clarkdo

Have merged this in with #81

@harlan-zw harlan-zw closed this Jun 15, 2021
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 this pull request may close these issues.

2 participants