Skip to content
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

FileAttachment import and call cannot be within the same cell #403

Closed
cinxmo opened this issue Dec 19, 2023 · 0 comments · Fixed by #411
Closed

FileAttachment import and call cannot be within the same cell #403

cinxmo opened this issue Dec 19, 2023 · 0 comments · Fixed by #411
Assignees
Labels
bug Something isn’t working

Comments

@cinxmo
Copy link
Contributor

cinxmo commented Dec 19, 2023

```js echo
import {FileAttachment} from "npm:@observablehq/stdlib";
const v = await FileAttachment("volcano.json").json();
```

displays Error: File not found: volcano.json. The output of parser does not include volcano.json in the list of files

vs this works:

```js echo
import {FileAttachment} from "npm:@observablehq/stdlib";
```

```js echo
const v = await FileAttachment("volcano.json").json();
```
@cinxmo cinxmo added the bug Something isn’t working label Dec 19, 2023
@mbostock mbostock self-assigned this Dec 20, 2023
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.

2 participants