Open jojorb opened 8 years ago
sorry for the several edit
@aenario any thought?
just to add more test with require...
cozysdk = require('../vendor/cozysdk-client.js');
"start": "node_modules/.bin/watchify src/app.js -o ./build/map.min.js -v -d .",
npm run start
with the last version of today
$ npm run start
...
Error: Cannot find module './utils/client' from '/home/.......'
Error: Cannot find module './utils/promiser'
Error: Cannot find module './utils/client'
Error: Cannot find module './utils/promiser'
Error: Cannot find module './crud'
Error: Cannot find module './binaries'
Error: Cannot find module './requests'
Error: Cannot find module './utils/client'
Error: Cannot find module './utils/promiser'
hi, after a
npm i cozysdk-client -- save
("cozysdk-client": "0.0.5") i use CommonJS and so i need to do into app.jsvar 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/
ls /node_modules/cozysdk-client/dist
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#L5So maybe it miss the ./utils folder into the npm version?