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

Nuxt3 Public assets bug #715

Open
6 tasks done
gyxoBka opened this issue Apr 26, 2024 · 2 comments
Open
6 tasks done

Nuxt3 Public assets bug #715

gyxoBka opened this issue Apr 26, 2024 · 2 comments
Labels
to triage This issue needs to be triaged

Comments

@gyxoBka
Copy link

gyxoBka commented Apr 26, 2024

Describe the bug

Assets are not available from /assets/. Only from /public/assets which is wrong

Reproduction

Stackblitz

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (6) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 18.18.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm
    pnpm: 8.15.6 - /usr/local/bin/pnpm
  npmPackages:
    @histoire/plugin-nuxt: ^0.17.5 => 0.17.17 
    @histoire/plugin-vue: ^0.17.5 => 0.17.17 
    histoire: ^0.17.5 => 0.17.17

Used Package Manager

npm

Validations

@gyxoBka gyxoBka added the to triage This issue needs to be triaged label Apr 26, 2024
Copy link

stackblitz bot commented Apr 26, 2024

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

@vivekrpatel8
Copy link

Add following to histoire.config file:

export default defineConfig({
  plugins: [HstVue(), HstNuxt()],
  vite: {
    publicDir: './public',
  },
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to triage This issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

2 participants