Skip to content

Importing in a Typescript project #199

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions