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

Hotfix: invalid-typeof-value error in webpack - typeof string must be 'boolean' and not 'bool' only #161

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

elcheco
Copy link

@elcheco elcheco commented Oct 25, 2018

I set up webpack for the new project in the company and as we're using Nette Framework I add also nette.ajax.js through yarn into the project and require this library in webpack. In development mode everything worked fine and I had no issues, but in the production build, the webpack through compilation always died with a stupid unclear message:

ERROR in unknown: Invalid typeof value

After a couple of hours searching where just it could be I got into nette.ajax.js - when required then it has been destroying the build. So I started to search a bit more in the code following this:

https://github.com/jamesallardice/jslint-error-explanations/blob/master/message-articles/invalid-typeof-value.md

and I have found one place where was the comparison against "bool" and not "boolean". I repair it to "boolean" and since then compilation is working fine...

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

Successfully merging this pull request may close these issues.

1 participant