Skip to content

"The method 'isRequired' was called on null" on subsequent runs with daemon #319

Closed
@DanTup

Description

@DanTup

Using latest code (running spinning_square) I see crashes for any run that's not the first run. eg.:

  • Run project (works)
  • Close browser
  • Run project (crashes)

If I clear the .dart_tool folder then it works again, once. Then fails on the next run.

GET /web/main.dart.js
Error thrown by handler.
NoSuchMethodError: The method 'isRequired' was called on null.
Receiver: null
Tried calling: isRequired(Instance of 'AssetId')
dart:core                                                        Object.noSuchMethod
FinalizedReader.unreadableReason
===== asynchronous gap ===========================
AssetHandler.handle
dart:async                                                       _completeOnAsyncReturn
package:build_runner/src/daemon/asset_server.dart                AssetServer.run.<fn>

I'm using 2.0.0 webdev and the latest code for spinning_square.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions