I'm having a problem on using `Dendron: Import Pod...
# questions
u
I'm having a problem on using
Dendron: Import Pod > dendron.markdown
. How can i fix this issue? The folder contains all my notion notes.
s
@User from the logs, this is the main error that keeps occurring, it's coming from Goto Note trying to find the path for the note:
Copy code
{
  level: 50,
  time: 1643439781701,
  pid: 54595,
  hostname: 'iseung-giui-MacBookAir.local',
  name: 'dendron',
  ctx: 'pauseWatchers',
  error: {
    stack: 'DendronError: bad path\n' +
      '    at Function.getFullPath (/Users/iseung-gi/.vscode/extensions/dendron.dendron-0.79.0/dist/extension.js:2:94791)\n' +
      '    at /Users/iseung-gi/.vscode/extensions/dendron.dendron-0.79.0/dist/extension.js:8:2921579\n' +
      '    at processTicksAndRejections (internal/process/task_queues.js:93:5)\n' +
      '    at an.pauseWatchers (/Users/iseung-gi/.vscode/extensions/dendron.dendron-0.79.0/dist/extension.js:8:2982954)\n' +
      '    at et.execute (/Users/iseung-gi/.vscode/extensions/dendron.dendron-0.79.0/dist/extension.js:8:2921413)\n' +
      '    at It.execute (/Users/iseung-gi/.vscode/extensions/dendron.dendron-0.79.0/dist/extension.js:8:2954636)\n' +
      '    at It.run (/Users/iseung-gi/.vscode/extensions/dendron.dendron-0.79.0/dist/extension.js:8:2887361)\n' +
      '    at /Users/iseung-gi/.vscode/extensions/dendron.dendron-0.79.0/dist/extension.js:8:3178683\n' +
      '    at r._executeContributedCommand (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:95:31072)',
    message: 'bad path',
    name: 'DendronError',
    status: 'unknown',
    payload: '{"wsRoot":"/Users/iseung-gi/Documents/github/hotsixredbull/Dendron"}'
  }
}
And this is the error for the import, it's because the engine returned
undefined
for the notes:
Copy code
{
  level: 50,
  time: 1643440831896,
  pid: 54595,
  hostname: 'iseung-giui-MacBookAir.local',
  name: 'dendron',
  ctx: 'dendron.importPod:run',
  error: {
    stack: "TypeError: Cannot read property 'forEach' of undefined\n" +
      '    at d.refreshNotesV2 (/Users/iseung-gi/.vscode/extensions/dendron.dendron-0.79.0/dist/extension.js:2:240453)\n' +
      '    at d.bulkAddNotes (/Users/iseung-gi/.vscode/extensions/dendron.dendron-0.79.0/dist/extension.js:2:238674)\n' +
      '    at runMicrotasks (<anonymous>)\n' +
      '    at processTicksAndRejections (internal/process/task_queues.js:93:5)\n' +
      '    at m.plant (/Users/iseung-gi/.vscode/extensions/dendron.dendron-0.79.0/dist/extension.js:2:483757)\n' +
      '    at /Users/iseung-gi/.vscode/extensions/dendron.dendron-0.79.0/dist/extension.js:8:3101828',
    message: "error while running command: Cannot read property 'forEach' of undefined",
    name: 'DendronError',
    status: 'unknown',
    payload: '{}',
    innerError: {}
  }
}
Sorry for hijacking your thread if you already had an answer 😅
j
haha, definitely np.
I tried importing my notion notes and they did import successfully. Not very sure of the error atm, will dig into this more.
5 Views