Skip to content
This repository was archived by the owner on Mar 26, 2020. It is now read-only.
This repository was archived by the owner on Mar 26, 2020. It is now read-only.

node_module maybe not complet #25

@jojorb

Description

@jojorb

hi,
after a npm i cozysdk-client -- save ("cozysdk-client": "0.0.5")
i use CommonJS and so i need to do into app.js
var cozysdk = require('../vendor/cozysdk-client');

an npm build return this error:
Error: Cannot find module './utils/client' from '/myproject/vendor'
Error: Cannot find module './utils/client' from '/stuff/myproject/node_modules/cozysdk-client/dist'

ls /node_modules/cozysdk/

  • dist

ls /node_modules/cozysdk-client/dist

  • cozysdk-client.js
  • cozysdk-client.js.map

with the https://cdn.rawgit.com/cozy/cozy-browser-sdk/wip-v1/dist/cozysdk-client.js
everything was fine
https://github.com/cozy/cozy-browser-sdk/blob/master/dist/cozysdk-client.js#L5

So maybe it miss the ./utils folder into the npm version?

Metadata

Metadata

Assignees

No one assigned

    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