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

Changing root property in vite.config.js is breaking the project. #187

Open
xenitane opened this issue Apr 29, 2024 · 0 comments
Open

Changing root property in vite.config.js is breaking the project. #187

xenitane opened this issue Apr 29, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@xenitane
Copy link

Description of Bug

I organize my codebase by moving all the source code, including the entry points in the src directory. And I set the root property of the vite config to "src" to achieve this.

With this setup when I run the dev server or build/generate, it tries to reinstall abell and ends with an error.

I tried another approach by using vite directly with vitePluginAbell and that didn't worked out either.

project-dir
|- src
|  |- index.abell
|  |....
|- public (public assets)
|- package.json
|- vite.config.js
|- ...other config files 

Steps To Reproduce

  1. modify the root property in vite.config.js
  2. run the dev server

Screenshots / Logs

> hello-abell@0.0.1 dev /home/xenitane/code/hello-abell
> abell dev

npm ERR! Cannot read properties of null (reading 'matches')

npm ERR! A complete log of this run can be found in: /home/xenitane/.npm/_logs/2024-04-29T10_25_38_432Z-debug-0.log
 ‣ oops npm install abell@1.0.0-beta.4 --save-dev failed
node:internal/process/promises:289
            triggerUncaughtException(err, true /* fromPromise */);
            ^

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "1".] {
  code: 'ERR_UNHANDLED_REJECTION'
}

Node.js v20.12.0

Specs

  • Abell Version: 1.0.0-beta.4
  • Node Version: 20.12.0
  • Operating System: Arch Linux

Additional context

@xenitane xenitane added the bug Something isn't working label Apr 29, 2024
@saurabhdaware saurabhdaware self-assigned this May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants