Skip to content

Assets not output when imported in +page.server.ts #9961

@liegeandlief

Description

@liegeandlief

Describe the bug

I previously raised this bug - #8224

It was closed because it was a duplicate of #5240 which has been closed as resolved by #9073

But this is still an issue for me. The problem doesn't occur when running the dev server only when running vite build and vite preview. I am using the

Is there something I need to do to get this to work?

Reproduction

See #8224

Logs

No response

System Info

System:
    OS: macOS 13.3.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 76.92 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.16.0 - ~/.volta/tools/image/node/18.16.0/bin/node
    Yarn: 3.3.0 - ~/.volta/tools/image/yarn/3.3.0/bin/yarn
    npm: 9.5.1 - ~/.volta/tools/image/npm/9.5.1/bin/npm
  Browsers:
    Chrome: 113.0.5672.92
    Firefox: 113.0
    Safari: 16.4
  npmPackages:
    @sveltejs/adapter-vercel: ^2.0.2 => 2.4.3
    @sveltejs/kit: ^1.0.0 => 1.16.3
    svelte: ^3.44.0 => 3.59.1
    vite: ^4.0.0 => 4.3.7

Severity

serious, but I can work around it

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions