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

Importing in a Typescript project #199

Open
Neo1975 opened this issue Jul 20, 2020 · 0 comments
Open

Importing in a Typescript project #199

Neo1975 opened this issue Jul 20, 2020 · 0 comments
Assignees

Comments

@Neo1975
Copy link

Neo1975 commented Jul 20, 2020

importing library in a Angular SSR project I have the follow error at compile time.

ERROR in ./node_modules/ibmcloud-appid/lib/strategies/webapp-strategy.js
Module not found: Error: Can't resolve '../data/languagesCodesArray' in '/..../node_modules/ibmcloud-appid/lib/strategies'

if you replace

const appIdSupportedLanguagesArray = require("../data/languagesCodesArray");

with:

const appIdSupportedLanguagesArray = require("../data/languagesCodesArray.json");

in ibmcloud-appid/lib/strategies/webapp-strategies.js it should be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants