flutter onesignal add problems "Expected to find project root in current working directory."

Viewed 4830

When I want to add onesignal to flutter, I get the following error. How can I solve it?

PROBLEM PHOTO

1 Answers

You'll get this error if you try run a command from outside the root of your flutter project folder. Simply type pwd in your project terminal, and the command will output the full path of your working directory. In VSCode, you can quickly access the project root folder terminal by right clicking the folder then "open in integrated terminal".

Related