Failed to load dataview plugin

Hello,

I received an error message “failed to load plugin dataview” on my MacOS Big Sure 11 (I can’t update, I don’t know if it has anything to with it.). Would anyone can help me to fix it?

Things I have tried

Reinstal obsydian APP
Reinstal plugin
Dataview plugin fails to load on iOS I read this topic but I can’t find Obsydian plugin folder on my computer. Do I even understand the solution to this problem correctly?

Info from my Debug Console

SYSTEM INFO:
Obsidian version: v1.7.4
Installer version: v1.7.4
Operating system: Darwin Kernel Version 20.6.0: Thu Jul 6 22:12:47 PDT 2023; root:xnu-7195.141.49.702.12~1/RELEASE_X86_64 20.6.0
Login status: logged in
Language: en
Catalyst license: none
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: off
Plugins installed: 2
Plugins enabled: 2
1: Dataview v0.5.67
2: Templater v2.9.1

RECOMMENDATIONS:
Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.

The .obsidian folder of your vault (which is the configuration folder where the plugins, themes, css snippets, etc … are stored) is a hidden folder you normally need to unhide/reveal to access it :blush: .

To unhide/reveal hidden files and folders on Mac, you can:

  • macOS: In Finder, press Cmd+Shift+. (period) to show hidden files.

Source

I have an older Mac stuck on Big Sur but I don’t encounter this issue :thinking:

Are you able to install, enable and use Dataview in the Sandbox Vault ?
Are there any errors showing up in the dev tool ? (cmd + option + i)

Thanks for your response!

I found the plugins folder and pasted the new files there, but it doesn’t seem to work.

I also opened a new Sandbox Vault and tried to use Dataview in it. I indexed some data and wrote a simple data query:

LIST

I recive thisError:

Evaluation Error: ReferenceError: LIST is not defined
at eval (eval at (plugin:dataview), :1:39)
at DataviewInlineApi.eval (plugin:dataview:18885:16)
at evalInContext (plugin:dataview:18886:7)
at asyncEvalInContext (plugin:dataview:18896:32)
at DataviewJSRenderer.render (plugin:dataview:18922:19)
at DataviewJSRenderer.onload (plugin:dataview:18464:14)
at e.load (app://obsidian.md/app.js:1:1230338)
at DataviewApi.executeJs (plugin:dataview:19465:18)
at DataviewPlugin.dataviewjs (plugin:dataview:20386:18)
at eval (plugin:dataview:20264:124)

From my debuging console:
SYSTEM INFO:
Obsidian version: v1.7.5
Installer version: v1.7.4
Operating system: Darwin Kernel Version 20.6.0: Thu Jul 6 22:12:47 PDT 2023; root:xnu-7195.141.49.702.12~1/RELEASE_X86_64 20.6.0
Login status: logged in
Language: en
Catalyst license: none
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: off
Plugins installed: 1
Plugins enabled: 1
1: Dataview v0.5.67

RECOMMENDATIONS:
Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.

It seems like you’ve written:

```dataviewjs
LIST
```

Which is trying to execute a dataviewjs javascript query, but the LIST is a pure dataview query, so try doing just:

```dataview
LIST
```

This is not a problem; even if I write “dataview” instead of “datawiejs,” I still get an error, and the entire plugin doesn’t work. I’m wondering if the issue might be that I’m syncing Obsidian vaults using iCloud?

It would indeed be a problem as it’s just wrong syntax…

Without more information, like what happened when you tried to do this query in the Sandbox vault or what shows up in the console pane of the Developers tool window.

I’m also running on Big Sur, and that’s not the issue in itself.

1 Like

Here are some steps you can take to troubleshoot and potentially resolve this issue:

Update Plugins: Ensure that all your plugins, including Dataview, are up to date. Sometimes, compatibility issues arise with newer versions of Obsidian. Since you mentioned you’re using Dataview v0.5.67, check if there’s a newer version available in the community plugins directory.

Check Compatibility: Since you’re on macOS Big Sur (11), verify whether the version of Dataview you’re using is compatible with your version of Obsidian (v1.7.4). The plugin’s documentation or GitHub page usually lists compatibility information.

Reinstall the Dataview Plugin:

Go to Settings > Community Plugins.
Disable the Dataview plugin.
Uninstall the plugin.
Restart Obsidian.
Reinstall the Dataview plugin from the community plugins directory.
Sandbox Vault: Create a new Sandbox Vault (a separate instance of Obsidian) to test if the Dataview plugin works there. This can help you determine if the issue is specific to your current vault:

Create a new vault in Obsidian.
Enable the Dataview plugin and see if it loads properly.
Check Plugin Folder: If you want to check the plugin folder manually:

Go to ~/Library/Application Support/obsidian/obsidian.json to find your vault path.
Navigate to that directory in Finder or using the terminal.
Look for the plugins folder inside your vault directory, where you should find the Dataview plugin files.
Debugging Logs: Since you have access to the Debug Console, look for any specific error messages related to the Dataview plugin when you try to load it. This information can provide more context about what’s going wrong.

Obsidian’s Official Support: If the issue persists, consider reaching out to the Obsidian community or their support for more specialized help. They may have encountered similar issues and can provide specific solutions.

Update macOS: Although you mentioned you can’t update, ensure that your current setup can still work with existing plugin versions. Sometimes, system limitations can affect compatibility.