-
Notifications
You must be signed in to change notification settings - Fork 9
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
ERROR in Path must be a string. Received undefined #3
Comments
I think there's a second edition of this book and GIT repository. But I downloaded THIS one and had the same problem that you had. So here are my fixes: Webpack is apparently not generating the index.html file correctly. But that gave me an out of sync error between html-webpack-plugin and html-webpack-template. So I UNINSTALLED BOTH html-webpack-template and html-webpack-plugin and reinstalled the latest of both. $ npm uninstall html-webpack-plugin html-webpack-template --save-dev That seems to have solved the problem. I think that you can just uninstall html-webpack-plugin ( it comes with [email protected]) and then install both, if you haven't already tried installing the template first. $ npm uninstall html-webpack-plugin --save-dev The that isn't all that is wrong with the project. Keep reading. I should also mention that I ALSO got the following error: ERROR in ./app/components/CourseControl.jsx I solved that by installing an alternative module.
Then edit the CourseControl.jsx fiile to reflect the new module rather than the old:
Don't ask me to explain why "jquery-ui/autocomplete" no longer works. |
Spoke too soon. The "star search" input box and autocomplete in the application is not working, even though "jquery-autocomplete" now compiles into the application. I see that webpack is not injecting the script tag for Jquery.js into the generated index.html (webpack.config.js looks like it is trying to set that up). That might be an issue.. So there is still something left for me or someone else to fix. But with the fixes I mention above, the application should display and mostly work. |
webpack.config.js uses the following, which automatically includes JQuery in the bundle.js file without having to reference it in particular code files. So . . . there should be no need for injecting a JQuery script tag into index.html. JQuery already exists in the bundle. plugins: [ But this still leaves us with the enigma of why the Jquery autocomplete plugin still isn't working. It is also included in the bundle.js. Versioning incompatibility? |
Hi,
I got this error in terminal when following the hello world tutorial (it's in page 32 of your ebook):
and
http://localhost:4000
gave me this error:TypeError: Path must be a string. Received undefined
How can I fix this? Thanks
The text was updated successfully, but these errors were encountered: