Skip to content

Importing in a Typescript project #199

@Neo1975

Description

@Neo1975

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions