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
UglifyJS fails to process tmi.js in my React/Webpack project #238
Comments
I'll make a PR to fix the packaging |
Actually, this has been suggested in #237; however, I will still make another PR with a significantly smaller diff. |
Added an additional workaround to the OP |
Is there any workaround now for an unejected Create-React-App? Receiving the same error:
|
import 'tmi.min.js'; |
Uncaught Error: Cannot find module "tmi.min.js" |
This is how I am currently implementing it that's giving me problems.
I tried your way and ran into two problems
|
@ahadcove Download the latest minified version of |
Okay, @AlcaDesign I did that and now receiving problems just with react. Could you show me an example of how you imported the minified version?
|
@ahadcove, these are |
I've been reading around and testing all day to no avail. @marcandrews does your branch handle this for the tmi.js being able to compile to react with no problem? |
Nvm, I seen the PR you had and just installed that instead.
|
@ahadcove oh wow, that's awesome! I thought there was a bug with |
Yeah, thankfully everything is working perfectly now :) |
Actual behaviour:
When using tmi.js as a dependency in my React/Webpack/UglifyJS project, UglifyJS fails to process tmi.js.
Expected behaviour:
UglifyJS processes tmi.js without error.
Error log:
... referring to the back-ticks in
lib/*.js
. It seems like tmi.js is not being compiled down to ES5.Server configuration
Workaround
module.loaders
array:The text was updated successfully, but these errors were encountered: