Skip to content

data loaders fail if they are in a subdirectory #130

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Fil opened this issue Nov 9, 2023 · 0 comments · Fixed by #131
Closed

data loaders fail if they are in a subdirectory #130

Fil opened this issue Nov 9, 2023 · 0 comments · Fixed by #131
Labels
bug Something isn’t working

Comments

@Fil
Copy link
Contributor

Fil commented Nov 9, 2023

docs/data/temp.csv.js

node:internal/process/promises:289
            triggerUncaughtException(err, true /* fromPromise */);
            ^

[Error: ENOENT: no such file or directory, rename '.observablehq/cache/data/temp.csv.27535' -> 'docs/.observablehq/cache/data/temp.csv.json'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'rename',
  path: '.observablehq/cache/data/temp.csv.27535',
  dest: 'docs/.observablehq/cache/data/temp.csv.json'
}
@Fil Fil added the bug Something isn’t working label Nov 9, 2023
Fil added a commit that referenced this issue Nov 9, 2023
@Fil Fil closed this as completed in #131 Nov 9, 2023
Fil added a commit that referenced this issue Nov 9, 2023
mbostock added a commit that referenced this issue Nov 9, 2023
* support data loaders in sub directories of docs/

closes #130

* test data loaders

* Update test/dataloaders-test.ts

Co-authored-by: Mike Bostock <[email protected]>

* ignore all .observablehq/cache

---------

Co-authored-by: Mike Bostock <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn’t working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant