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

library breaks after production build with webpack #67

Open
axe-me opened this issue Apr 10, 2018 · 4 comments
Open

library breaks after production build with webpack #67

axe-me opened this issue Apr 10, 2018 · 4 comments

Comments

@axe-me
Copy link

axe-me commented Apr 10, 2018

my build is fine without using UglifyJSPlugin. but with UglifyJSPlugin, I got the error in runtime:
TypeError: t.appendChild is not a function

so i have to import the minified version which is working fine.

@mikemix
Copy link

mikemix commented Feb 12, 2019

I have no problems when creating a production build in Webpack4 using Horsey.

@Mihara
Copy link

Mihara commented Mar 20, 2019

I do have the same problem in Webpack4 (using Terser). Importing the minified version helps.

I guess I should find another autocomplete library. 😢

@mikemix
Copy link

mikemix commented Mar 20, 2019

I guess. It looks dead.

@jacob-kofoed
Copy link

I got the same, seems to be a problem with using shadowed variables "categories" in the loaded function inside the same closure as the autocomplete function with also a "categories". Some minifiers in production build might not realize the nature of the shadowed variable and set it to the wrong value, calling appendChild on an array..

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

4 participants