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

vue-loader compile error when use with loader has enforce: post #1351

Closed
zhuzhuaicoding opened this issue Jun 26, 2018 · 0 comments
Closed

Comments

@zhuzhuaicoding
Copy link

Version

15.2.1

Reproduction link

https://github.com/earlymeme/test-vue-loader-with-post-loader

Steps to reproduce

  1. run yarn to install devDependencies
  2. run yarn test to create a test server
  3. open your url

What is expected?

no error

What is actually happening?

Uncaught TypeError: Cannot set property 'render' of undefined
at normalizeComponent (componentNormalizer.js?2877:24)


loaders[0] is not self in this case. https://github.com/vuejs/vue-loader/blob/v15.2.1/lib/loaders/pitcher.js#L23
because of https://github.com/webpack/webpack/blob/v4.12.1/lib/NormalModuleFactory.js#L318 the post loader will be the first one.

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

1 participant