Unable to open 'libintegers_patch.dart': Cannot read property 'create' of undefined.
See original GitHub issueI am not sure what caused this as I updated a few things in the mean time, but debugging now gives me a popup saying Unable to open 'libintegers_patch.dart': Cannot read property 'create' of undefined.
when it hits an exception. I have everything pretty much on the newest version, but I can send version numbers if you want.
Something changed about the debugging interface as well because now I can see some kind of file tree when I start the debugger. However, somehow the debugger no longer pauses on uncaught exceptions. Instead it quits and prints some error the the debug output. I get:
loading test/all.dart:
ERROR: Failed to load "test/all.dart":
The getter 'isNotEmpty' was called on null.
Receiver: null
Tried calling: isNotEmpty
{stack trace in my project}
This could very well be an error with the test or analyzer package, but I am not sure to track down where it it coming from.
Issue Analytics
- State:
- Created 5 years ago
- Comments:18 (9 by maintainers)
Top Results From Across the Web
TypeErro: cannot read property 'create' of undefined
I've tried the solution i got here "TypeError: Cannot read property 'create' of undefined". Here's my index.js from models directory
Read more >Cannot Read Property of Undefined in JavaScript - Rollbar
TypeError : Cannot read property of undefined occurs when a property is read or a function is called on an undefined variable.
Read more >Cannot read property 'app' of undefined' In Flutter Web | Medium
How To Fix 'TypeError: Cannot read property 'app' of undefined' In Flutter Web. The stack output when FlutterFire is not configured properly.
Read more >Uncaught TypeError: Cannot read property of undefined In
Uncaught TypeError : Cannot read property of undefined error occurs in Chrome when you read a property or call a method on an...
Read more >ERROR running force:project:create: Cannot read property ...
Both of the project commands ( Create Project and Create Project with Manifest ) will prompt you for a project name and then...
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
I’ve made two changes:
It’s not ideal that we’re not going to show source code here, but that’s not something I can fix in Dart Code. I’ve added comments to https://github.com/dart-lang/sdk/issues/33959 so if things can be improved there, hopefully they will 😃
I did! It actually seems like a lot of things are broken when you break there - I’ve opened https://github.com/dart-lang/sdk/issues/33959 for some advice. Things seem ok if you break inside your own code, but if you use
Break on all exceptions
to break inside pub/test before it gets to your code, you get these weird things (I suspect some of it may be related to its being compiled snapshots?).I do think that’s a reasonable idea, but it relies on us being able to tell when we’re breaking on an exception that will be caught versus one that won’t. Open an issue and we can do some investigation.