Skip to content

npm run watch not works since switch to Vite #1930

@Koc

Description

@Koc

Steps to reproduce

  1. Clone repository
  2. Run npm run watch

Expected behavior

Project built and watching for file changes

Actual behavior

www-data@php-fpm:~/html/apps/tables$ npm run watch

> [email protected] watch
> vite --mode development build --watch

Building tables for development
 
[vite-plugin-css-injected-by-js] Experimental dev mode activated! Please, for any error open a issue. 

(!) build.outDir must not be the same directory of root or a parent directory of root as this could cause Vite to overwriting source files with build outputs.

vite v6.3.5 building for development...

watching for file changes...
[!] RollupError: Invalid value for option "watch" - the input "/var/www/html/apps/tables/src/reference.js" is a subpath of the output "/var/www/html/apps/tables".
https://rollupjs.org/configuration-options/#watch
    at getRollupError (file:///var/www/html/apps/tables/node_modules/rollup/dist/es/shared/parseAst.js:401:41)
    at error (file:///var/www/html/apps/tables/node_modules/rollup/dist/es/shared/parseAst.js:397:42)
    at checkWatchConfig (file:///var/www/html/apps/tables/node_modules/rollup/dist/es/shared/node-entry.js:23753:21)
    at watchInternal (file:///var/www/html/apps/tables/node_modules/rollup/dist/es/shared/node-entry.js:23765:5)

Tables app version

1.0.0-beta.1 (main branch)

Operating system

Linux php-fpm 6.11.0-17-generic #17~24.04.2-Ubuntu SMP PREEMPT_DYNAMIC Mon Jan 20 22:48:29 UTC 2 x86_64 GNU/Linux

Additional info

ref #830

Metadata

Metadata

Assignees

No one assigned

    Labels

    1. to developAccepted and waiting to be taken care ofbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions