question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: Cannot read property 'composite' of undefined AND ReferenceError: _typeof is not defined

See original GitHub issue

When I add a ReactMapboxGl component I get these errors multiple times. The map starts rendering – ScaleControl and ZoomControl also appear – but it remains empty.

I tried reinstalling all node modules, installing a previous version of the package, using webpack 1 instead of vers. 2, but none of those measures changed this behaviour.

Error details:

Uncaught TypeError: Cannot read property 'composite' of undefined at WorkerTile.parse (blob:http://localhost:8080/e7f302b7-8cfd-490f-9f15-fa6b29b23651:947) at VectorTileWorkerSource.t (blob:http://localhost:8080/e7f302b7-8cfd-490f-9f15-fa6b29b23651:834) at VectorTileWorkerSource.t (blob:http://localhost:8080/e7f302b7-8cfd-490f-9f15-fa6b29b23651:857) at XMLHttpRequest.n.onload (blob:http://localhost:8080/e7f302b7-8cfd-490f-9f15-fa6b29b23651:1682)

and

Uncaught ReferenceError: _typeof is not defined at Object.exports.clone (blob:http://localhost:8080/e7f302b7-8cfd-490f-9f15-fa6b29b23651:2133) at new StyleDeclaration (blob:http://localhost:8080/e7f302b7-8cfd-490f-9f15-fa6b29b23651:1007) at i.setPaintProperty (blob:http://localhost:8080/e7f302b7-8cfd-490f-9f15-fa6b29b23651:1063) at new i (blob:http://localhost:8080/e7f302b7-8cfd-490f-9f15-fa6b29b23651:1038) at Function.StyleLayer.create (blob:http://localhost:8080/e7f302b7-8cfd-490f-9f15-fa6b29b23651:1119) at StyleLayerIndex.update (blob:http://localhost:8080/e7f302b7-8cfd-490f-9f15-fa6b29b23651:1216) at StyleLayerIndex.replace (blob:http://localhost:8080/e7f302b7-8cfd-490f-9f15-fa6b29b23651:1213) at Worker.setLayers (blob:http://localhost:8080/e7f302b7-8cfd-490f-9f15-fa6b29b23651:883) at Actor.receive (blob:http://localhost:8080/e7f302b7-8cfd-490f-9f15-fa6b29b23651:1654)

And here the dependencies in my package.json

"devDependencies": { "babel": "^6.23.0", "babel-core": "^6.23.1", "babel-loader": "^6.3.2", "babel-plugin-add-module-exports": "^0.2.1", "babel-preset-es2015": "^6.22.0", "babel-preset-react": "^6.23.0", "babel-preset-stage-0": "^6.22.0", "babel-preset-stage-2": "^6.22.0", "core-js": "^2.4.1", "css-loader": "^0.26.1", "d3": "^4.6.0", "geojson-polyline": "^1.0.0", "jquery": "^3.1.1", "node-sass": "^4.5.0", "react": "^15.4.2", "react-dom": "^15.4.2", "react-mapbox-gl": "^1.3.0", "sass-loader": "^6.0.2", "style-loader": "^0.13.1", "turf": "^3.0.14", "webpack": "^2.2.1" }

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
alex3165commented, Aug 24, 2017

I will close this issue because of inactivity and I don’t think it is relevant anymore.

1reaction
piaaaaccommented, Mar 15, 2017

In the meantime I found a different solution for my project. But still, I went back and tried to add noParse to the webpack config file but I still get similar errors.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read property of undefined while checking for undefined
I solved the issue by creating a middle variable each time with the partial object I need to compare:.
Read more >
Uncaught TypeError: Cannot read property of undefined
'Undefined' is the property of the global object. If you don't assign any value to a variable is of type 'undefined'. A code...
Read more >
ECMAScript® 2023 Language Specification - TC39
Introduction. This Ecma Standard defines the ECMAScript 2023 Language. It is the fourteenth edition of the ECMAScript Language Specification.
Read more >
What are the common error messages to expect in Web ...
Solution ​. Ensure that the parent DOM exists when you call Stream.play . Cannot read property 'stringuid' of undefined ...
Read more >
Read A Practical Introduction to Modern JavaScript | Leanpub
The second value is undefined , symbolizing that the console.log function does not have a defined returned value. You don't have to understand...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found