apvarun / toastify-js

Pure JavaScript library for better notification messages
https://apvarun.github.io/toastify-js/
MIT License
2.09k stars 230 forks source link

TypeError Exports #121

Closed Mmisiek closed 1 year ago

Mmisiek commented 1 year ago

Suddenly in my Flutter project, I get the error: TypeError: Cannot read properties of null (reading 'exports') assets/packages/fluttertoast/assets/toastify.js 14:48 assets/packages/fluttertoast/assets/toastify.js 14:90

Any idea what could have changed ?

josemoura212 commented 1 year ago

I have the same message if anyone knows how to solve it

Mmisiek commented 1 year ago

New version fixed this issue.

Mmisiek commented 1 year ago

Fixed in version 8.2.2 https://pub.dev/packages/fluttertoast/versions/8.2.2

josemoura212 commented 1 year ago

I fixed this error, but I couldn't use toast on the web, I switched to bot toast but I didn't like it very much, I think it's heavier, could you help me?

Mmisiek commented 1 year ago

Sorry, I don't understand your problem. I am using this package non-directly. I updated the version to ^8.2.2 in my pubsec.yalm and it works.

josemoura212 commented 1 year ago

Now it worked, I forgot to uncomment fluttertoast, thanks anyway

josemoura212 commented 1 year ago

I have another error, if you knew could you help me. WARNING: found an existing tag. Flutter Web uses its own viewport configuration for better compatibility with Flutter. This tag will be replaced.

Mmisiek commented 1 year ago

I have another error, if you knew could you help me. WARNING: found an existing tag. Flutter Web uses its own viewport configuration for better compatibility with Flutter. This tag will be replaced.

Sorry, never seen it.