Cannot read property 'guess' of undefined
See original GitHub issueam trying to use guess with laravel through a pre-defined routes file like in nuxt example so the setup is
guess-routes.json
ex.
{
"\/": {
"\/login": 2,
"\/about": 1
},
"\/about": {
"\/contact-us": 1
},
"\/contact-us": {
"\/": 1
}
}
- webpack
const {readFileSync} = require('fs')
const {GuessPlugin} = require('guess-webpack')
mix.webpackConfig({
plugins: [
new GuessPlugin({
reportProvider() {
return Promise.resolve(JSON.parse(readFileSync('./guess-routes.json')))
}
})
]
})
- app.js
import {guess} from 'guess-webpack/api'
guess()
- error
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:17 (3 by maintainers)
Top Results From Across the Web
moment.tz.guess() error · Issue #294 - GitHub
Running moment.tz.guess() produces the following error: Uncaught TypeError: Cannot read property 'join' of null(…)OffsetAt @ global.js:11363 ...
Read more >Cannot read property 'tz' of undefined - Ember Moment ...
Uncaught TypeError : Cannot read property 'tz' of undefined. Could anyone tell me the proper way to load moment-timezone? Thanks!
Read more >Cannot Read Property of Undefined in JavaScript - Rollbar
What Causes TypeError: Cannot Read Property of Undefined. Undefined means that a variable has been declared but has not been assigned a value....
Read more >cannot read properties of undefined (reading 'guess') - You.com
To solve the "Cannot read properties of undefined" error, make sure to insert the JS script tag at the bottom of the body....
Read more >TypeError: Cannot read property 'name' of undefined - Training
Looking at the test, I can guess there is a property called “name” of some object you are referencing may be empty.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
hi @daliborgogic , after I disabled the pwa and remove all the cache the error seems to be gone, I guess it was the previous cached js caused the issue. Thanks for the help!!
@mgechev any news 🎈 ?