In nativescript vue.js project I installed nativescript-oauth2 by npm install nativescript-oauth2
.
Later I'm trying import nativescript-oauth2 package into project file by import { TnsOAuthClient, configureTnsOAuth } from 'nativescript-oauth2';
.
When I'm building application I get following error.
ERROR in ./auth/auth-service.js
Module not found: Error: Can't resolve 'nativescript-oauth2' in 'C:\repo\digitaltjagttegn-mobileapp\app\auth'
@ ./auth/auth-service.js 2:0-72
@ . sync (?<!\bApp_Resources\b.*)(?<!\.\/\btests\b\/.*?)\.(xml|css|js|kt|(?<!\.d\.)ts|(?<!\b_[\w-]*\.)scss)$
@ ./main.js`
I would be great if someone will give me some hint of what to do with it
I've removed hooks
, platforms
and node_modules
folders and rebuild with the same result.
For example import { isAndroid, isIOS } from 'tns-core-modules/platform';
in the same file working good.
Thank you for help in advance.