Skip to content

[BUG] Files not found when using NPM Package directly. #80

Open
@idmedia-kaiser

Description

@idmedia-kaiser

Hi,

when we use "@contentstack/datasync-filesystem-sdk": "1.0.18" in package.json instead of "datasync-filesystem-sdk": "file:./modules/contentstack-datasync-filesystem-sdk-1.0.18.tgz",

and then update the sdk config part
from
const config = { sdk: "datasync-filesystem-sdk", contentStore: { baseDir: "./_contents",

to

const config = { sdk: "@contentstack/datasync-filesystem-sdk", contentStore: { baseDir: "./_contents",

the API can't find any file, because it looks in baseDir/node_modules/_contents, instead of in the baseDir/_contents.

Also using ./../_contents is not working.

Metadata

Metadata

Assignees

No one assigned

    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