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

Plugin Error: no such file or directory #81

Open
moonlitgrace opened this issue Jan 7, 2025 · 0 comments
Open

Plugin Error: no such file or directory #81

moonlitgrace opened this issue Jan 7, 2025 · 0 comments

Comments

@moonlitgrace
Copy link

so I've this config:

rollupPlugins: {
  before: [
    copy({
      targets: [
        { src: '../../node_modules/webtorrent/dist/sw.min.js', dest: './www/' },
        { src: '../../node_modules/webtorrent/dist/sw.min.js', dest: './dist/' },
      ],
      verbose: true,
      copyOnce: true,
    })
  ]
}

on the first build it works (if there is no sw.min.js file in destination), but on further builds- it fails with:

[54:24.0]  @stencil/core
[54:24.5]  v4.23.0 🐣
[54:26.5]  build, core-video-player, prod mode, started ...
[54:26.5]  transpile started ...
[54:29.6]  transpile finished in 3.08 s
[54:29.6]  generate custom elements + source maps started ...
[54:29.6]  generate lazy + source maps started ...
copied:
copied:
[54:30.9]  generate lazy + source maps finished in 1.29 s
  ../../node_modules/webtorrent/dist/sw.min.js → www/sw.min.js
  ../../node_modules/webtorrent/dist/sw.min.js → dist/sw.min.js
[54:31.0]  generate custom elements + source maps finished in 1.43 s
[54:31.0]  copy started ...
[54:31.0]  copy finished (2 files) in 32 ms

[ ERROR ]  Rollup: Plugin Error
           ENOENT: no such file or directory, unlink 'www/sw.min.js' (plugin: copy, buildEnd)

[54:31.0]  build failed in 4.59 s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant