slovnicki / beamer

A routing package built on top of Router and Navigator's pages API, supporting arbitrary nested navigation, guards and more.
MIT License
591 stars 129 forks source link

Uncaught TypeError: Cannot read properties of null (reading 'toString') #650

Open donuthappy opened 11 months ago

donuthappy commented 11 months ago

Flutter web release mode issue

Occurs sometimes when I use beamer package.

Expected results If user click the button, modal should be opened.

Actual results If user click the button at first, modal should not be opened. after the first, modal can open the modal.

Code sample context.beamToNamed('/home/search', popToNamed: '/home');

Logs Uncaught TypeError: Cannot read properties of null (reading 'toString') at main.dart.js_70.part.js:264:3

Flutter Doctor output Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, 3.13.5, on Microsoft Windows [Version 10.0.22000.2538], locale en-US) [√] Windows Version (Installed version of Windows is version 10 or higher) [!] Android toolchain - develop for Android devices (Android SDK version 34.0.0) X Android license status unknown. Run flutter doctor --android-licenses to accept the SDK licenses. See https://flutter.dev/docs/get-started/install/windows#android-setup for more details. [√] Chrome - develop for the web [√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.7.5) [√] Android Studio (version 2021.2) [√] VS Code (version 1.85.1) [√] Connected device (3 available) [√] Network resources

stan-at-work commented 4 months ago

Flutter web release mode issue

Occurs sometimes when I use beamer package.

Expected results

If user click the button, modal should be opened.

Actual results

If user click the button at first, modal should not be opened.

after the first, modal can open the modal.

Code sample

context.beamToNamed('/home/search', popToNamed: '/home');

Logs

Uncaught TypeError: Cannot read properties of null (reading 'toString')

at main.dart.js_70.part.js:264:3

Flutter Doctor output

Doctor summary (to see all details, run flutter doctor -v):

[√] Flutter (Channel stable, 3.13.5, on Microsoft Windows [Version 10.0.22000.2538], locale en-US)

[√] Windows Version (Installed version of Windows is version 10 or higher)

[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)

X Android license status unknown.

Run flutter doctor --android-licenses to accept the SDK licenses.

See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.

[√] Chrome - develop for the web

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.7.5)

[√] Android Studio (version 2021.2)

[√] VS Code (version 1.85.1)

[√] Connected device (3 available)

[√] Network resources

Hey, 👋 This does not seem like a beamer issue.

Try openening an issue, with flutter. This most likely already fixed.