Open srinivas1106 opened 4 years ago
You should run yarn install first.
On Sun, May 10, 2020 at 11:30 AM srinivas1106 notifications@github.com wrote:
Hi Houshang, I am getting error when i try to do roam export on MAC.
Node relase node-v14.2.0 on MAC
Error: ~/Roam-css/roamtools/roam-export master* ❯ node index.mjs ../input/Lesion.json --text "lesion" 14:50:38 internal/modules/run_main.js:54 internalBinding('errors').triggerUncaughtException( ^
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'chrono-node' imported from /Users/XXX/Roam-css/roamtools/roam-export/index.mjs at packageResolve (internal/modules/esm/resolve.js:616:9) at moduleResolve (internal/modules/esm/resolve.js:655:14) at Loader.defaultResolve [as _resolve] (internal/modules/esm/resolve.js:748:11) at Loader.resolve (internal/modules/esm/loader.js:97:40) at Loader.getModuleJob (internal/modules/esm/loader.js:243:28) at ModuleWrap. (internal/modules/esm/module_job.js:42:40) at link (internal/modules/esm/module_job.js:41:36) { code: 'ERR_MODULE_NOT_FOUND' }
BR S
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/houshuang/roam-export/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAPBB3AAFNSVU4WTLEBVU3RQZX3LANCNFSM4M5FI7MQ .
-- https://networkedthought.substack.com http://networkedthought.substack.com -- Networked Thoughts and Learning newsletter
Dear Stian, Thank you for pointing out. I installed Yarn and chrono-node. Now I am getting this backlinks error.
~/Roam-css/roamtools/roam-export master* ❯ node index.mjs ../input/BookClub.json --mentions "Book Club" 04:20:03 === Book Club ===
Backlinks file:///Users/srinivas/Roam-css/roamtools/roam-export/index.mjs:338 refs.filter((f) => f).map((x) => [x, ...blocks[x]]) ^
TypeError: Cannot read property 'filter' of undefined at renderLinkedReferences (file:///Users/srinivas/Roam-css/roamtools/roam-export/index.mjs:338:10) at file:///Users/srinivas/Roam-css/roamtools/roam-export/index.mjs:384:15 at ModuleJob.run (internal/modules/esm/module_job.js:110:37) at async Loader.import (internal/modules/esm/loader.js:179:24) ~/Roam-css/roamtools/roam-export master* ❯
BR S
Hi Stian , I am getting error when i try to do roam export on MAC. Request to Update.
Node relase node-v14.2.0 on MAC
Error: ~/Roam-css/roamtools/roam-export master* ❯ node index.mjs ../input/Lesion.json --text "lesion" 14:50:38 internal/modules/run_main.js:54 internalBinding('errors').triggerUncaughtException( ^
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'chrono-node' imported from /Users/XXX/Roam-css/roamtools/roam-export/index.mjs at packageResolve (internal/modules/esm/resolve.js:616:9) at moduleResolve (internal/modules/esm/resolve.js:655:14) at Loader.defaultResolve [as _resolve] (internal/modules/esm/resolve.js:748:11) at Loader.resolve (internal/modules/esm/loader.js:97:40) at Loader.getModuleJob (internal/modules/esm/loader.js:243:28) at ModuleWrap. (internal/modules/esm/module_job.js:42:40)
at link (internal/modules/esm/module_job.js:41:36) {
code: 'ERR_MODULE_NOT_FOUND'
}
BR S