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

Error "Cannot read property 'el' of undefined" in production mode #2217

Closed
chenhaihong opened this issue Sep 23, 2020 · 0 comments
Closed

Error "Cannot read property 'el' of undefined" in production mode #2217

chenhaihong opened this issue Sep 23, 2020 · 0 comments
Labels
has PR A pull request has already been submitted to solve the issue 🐞 bug Something isn't working

Comments

@chenhaihong
Copy link

Version

3.0.0

Reproduction link

https://github.com/chenhaihong/vue-next-runtime-core-error

Steps to reproduce

  1. Use @vue/cli to create a new project.
  2. Put the code into your page's template
<pre>
      <!-- <code class="javascript" v-hljs>const a = 100;</code> -->
      <code class="javascript">const a = 100;</code>
</pre>
  1. run yarn build
  2. run http-server ./dist
  3. visit the page
  4. error happens now.

What is expected?

It should wokr with the same as

<pre>
      <code class="javascript">const a = 100;</code>
</pre>

What is actually happening?

runtime-core.esm-bundler.js?5c40:2020 Uncaught TypeError: Cannot read property 'el' of undefined
at cloneIfMounted (runtime-core.esm-bundler.js?5c40:2020)
at mountChildren (runtime-core.esm-bundler.js?5c40:4178)
at mountElement (runtime-core.esm-bundler.js?5c40:4103)
at processElement (runtime-core.esm-bundler.js?5c40:4075)
at patch (runtime-core.esm-bundler.js?5c40:3988)
at mountChildren (runtime-core.esm-bundler.js?5c40:4180)
at mountElement (runtime-core.esm-bundler.js?5c40:4103)
at processElement (runtime-core.esm-bundler.js?5c40:4075)
at patch (runtime-core.esm-bundler.js?5c40:3988)
at componentEffect (runtime-core.esm-bundler.js?5c40:4493)

@posva posva changed the title runtime-core.esm-bundler.js throws "Cannot read property 'el' of undefined" !! Error "Cannot read property 'el' of undefined" in production mode Sep 23, 2020
@posva posva added the 🐞 bug Something isn't working label Sep 23, 2020
@posva posva added the has PR A pull request has already been submitted to solve the issue label Sep 29, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Nov 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
has PR A pull request has already been submitted to solve the issue 🐞 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants