Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot be called on 'Map<dynamic, dynamic>?' because it is potentially null #57

Open
palmtown opened this issue Sep 8, 2023 · 2 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@palmtown
Copy link

palmtown commented Sep 8, 2023

Describe the bug
When building my app with this package, I get the error "cannot be called on 'Map<dynamic, dynamic>?' because it is potentially null." We were able to resolve the issue by changing this._socket.io.options['extraHeaders'] = to this._socket.io.options!['extraHeaders'].

I have attached a screenshot of the error and a screenshot of the fix. Can you implement this fix or a fix you deem necessary to resolve the issue?

To Reproduce
Build app with package.

Expected behavior
Build successfully.

Screenshots
flutter-feathersjs-fix
feathersjs-error

@palmtown palmtown added the bug Something isn't working label Sep 8, 2023
@Dahkenangnon
Copy link
Owner

Hi @palmtown
Thanks this.

It'll be nice to make a PR.

Can you ?

@Dahkenangnon Dahkenangnon added the help wanted Extra attention is needed label Oct 11, 2023
@mariocarro
Copy link

There is a PR available that fixes this issue. Can you merge it and release a new version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants