Skip to content

Enabling createCompilerError message in production #4537

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

Open
micopiira opened this issue Sep 8, 2021 · 2 comments
Open

Enabling createCompilerError message in production #4537

micopiira opened this issue Sep 8, 2021 · 2 comments
Labels
🍰 p2-nice-to-have Priority 2: this is not breaking anything but nice to have it addressed. ✨ feature request New feature or request

Comments

@micopiira
Copy link

Version

3.2.1

Reproduction link

sfc.vuejs.org/

Steps to reproduce

Is there any way to enable proper error messages in production when using vue.esm-bundler.js?

vue.cjs.prod.js seems to include proper error messages for DOM compiler errors unlike vue.esm-bundler.js.

What is expected?

SyntaxError: Element is missing end tag.

What is actually happening?

SyntaxError: 24

@yyx990803
Copy link
Member

That would bloat the production bundle by a LOT. I think what we should probably do is include an error code to message reference in the docs, which can be auto-generated.

For now you can refer to the non-minified code (search for "errorMessages")

@yyx990803 yyx990803 added the ✨ feature request New feature or request label Sep 8, 2021
@SomeoneIsWorking
Copy link

It would also help me a lot if const errorMessages could just be an export.
I want to report compile errors from production build to server so management users can see error logs.

@haoqunjiang haoqunjiang added the 🍰 p2-nice-to-have Priority 2: this is not breaking anything but nice to have it addressed. label Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍰 p2-nice-to-have Priority 2: this is not breaking anything but nice to have it addressed. ✨ feature request New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants