You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’d like to play with the dataview API on external dev env, but right from the start there appears to be a problem with the installation. I did npm install -D obsidian-dataview.
But a simple code like
import { getAPI } from “obsidian-dataview”;
console.log(“test”)
I get the error Error: Cannot find module 'obsidian'. However, the module seems to be installed.
Error: Cannot find module 'obsidian'
Require stack:
- /Users/spyros.m/Documents/Obsidian/node_modules/obsidian-dataview/lib/index.js
at Function._resolveFilename (node:internal/modules/cjs/loader:1249:15)
at Function._load (node:internal/modules/cjs/loader:1075:27)
at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:218:24)
at Module.require (node:internal/modules/cjs/loader:1340:12)
at require (node:internal/modules/helpers:141:16)
at Object.<anonymous> (/Users/a-phe-lei-a/Documents/Obsidian/node_modules/obsidian-dataview/lib/index.js:5:1)
at Module._compile (node:internal/modules/cjs/loader:1546:14)
at Object..js (node:internal/modules/cjs/loader:1689:10)
at Module.load (node:internal/modules/cjs/loader:1318:32) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/Users/a-phe-lei-a/Documents/Obsidian/node_modules/obsidian-dataview/lib/index.js'
]
}
What happened?
I’d like to play with the dataview API on external dev env, but right from the start there appears to be a problem with the installation. I did
npm install -D obsidian-dataview.
But a simple code like
I get the error
Error: Cannot find module 'obsidian'
. However, the module seems to be installed.DQL
No response
JS
No response
Dataview Version
[email protected]
Obsidian Version
1.7.4
OS
MacOS
The text was updated successfully, but these errors were encountered: