-
Notifications
You must be signed in to change notification settings - Fork 183
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
Weird variables appearing in output bundle #475
Comments
After a little more digging, these variables are actually the following, where I assume the Webpack build reduces the variable name to a smaller size:
|
From more digging, it turns out that the variables above are the The browser is complaining that the character "\ua3" is invalid. Relevant part of the encoded string:
|
It looks like your webpack config is having trouble with this section of the
Specifically |
I have used the
Linkify
React component to create links within text. When I run my production Webpack build (via CRA) the output JavaScript bundle contains the following weird local variables (both are truncated here as they are multiple lines long):and
If I remove the
<Linkify>
component and render plain text as before, these variables are not in the Webpack output JavaScript. What is going on here? I can notice what appear to be broken-up words in the first string such as "xbox", "scholarships", "hamburg", "livery", "business" and so on. Where is this garbage coming from? The app fails to run with the error "Invalid unicode escape sequence" due to the second variableJl
.To emphasize, if the only change I make is to remove the
<Linkify>
tag, everything works fine and these variables are gone.The text was updated successfully, but these errors were encountered: