nativescript-oauth
nativescript-oauth copied to clipboard
Could not find module 'nativescript-oauth/auth-helper-office365'
trafficstars
Hello, I need a little help. I am using nativescript-vue, and nativescript-oauth packages. When I build the project using npm run watch:ios, I get the following error:
JS ERROR Error: Could not find module 'nativescript-oauth/auth-helper-office365'.
Computed path '/Users/<username>/Library/Developer/CoreSimulator/Devices/58F10B9B-AC91-43ED-9130-297DC699D01D/data/Containers/Bundle/Application/0D82B218-ED67-40BB-9B91-428A9235C2B7/dist.app/app/tns_modules/nativescript-oauth/auth-helper-office365'.
I looked in the dist.app > app > tns_modules package and notice all the default dependencies folders are there, but nativescript-oauth isn't there. Am I missing something? Any help would be appreciated.
Ok. So I did some research, and read the page How to install plugins in a vue project, and it worked.
https://www.nativescript.org/blog/using-plugins-in-a-nativescript-vue-app
The magic line that I didn't do was npm run clean