Skip to content

Manual pasting files into assets folder needed for build rendering #25

@gganapat

Description

@gganapat

I am fine tuning my existing Observable Desktop code for build using Notebook Kit. The code works fine in Desktop. The relevant snippet in Desktop is below which takes the file coolprop.js and injects it as script.

Image

But when trying to render from the dist folder, I got "File not found" error

Image

Once I copied over the coolprop.js and coolprop.wasm files into the assets folder, then it worked fine. It looks like the files are not automatically copied over during the build process. I'm not sure if this is a bug, or was designed to be this way.

The rendered plot likes like this BTW.

Image

Thanks,
Gani --

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions