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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Intermittent Cannot read property 'js' of null
#1227
Comments
Please note that while similar to issue #1158, it does have some specific differences:
|
Further notes
|
I just add my two cents. that happen to me just now when i update parcel from version 1.6.2 to version 1.7.1 on the almost same project ( copy paste to different directory and install all dependency from fresh ) |
Is this still an issue? If yes, could you please provide an example pug and javascript file? |
馃悰 bug report
A single JavaScript file causes intermittent
parcel serve
errors, which miraculously solve themselves when the same file is saved again with no modifications.馃帥 Configuration (.babelrc, package.json, cli command)
package.json
.babelrc
Tried without a
.babelrc
and with:CLI command
parcel serve index.pug
The behaviour is more likely to occur if the cache is deleted:
rm -r dist .cache && parcel serve index.pug
馃 Expected Behavior
Parcel should serve the website properly and without errors.
馃槸 Current Behavior
馃拋 Possible Solution
馃敠 Context
Weirdly enough, the error is generated every time the site is fully rebuilt and every now and then when making live modifications. The behaviour is mostly unpredictable.
I have a single JavaScript file which I have attached below and it seems to be the one causing the problems.
Even more strange is the fact that if you save the script file on disk without making any modifications, it will successfully compile and the site will run.
Basically, every time I start working on the project again after I've cleaned the
dist
and.cache
directories (for deployment), I get this and have to re-save the.js
file.馃捇 Code Sample
JavaScript file
馃實 Your Environment
The text was updated successfully, but these errors were encountered: