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

Project not created and getting OOPs with different message in different try #71

Closed
Hakuz opened this issue May 8, 2024 · 3 comments
Closed
Assignees
Labels
dependencies Pull requests that update a dependency file

Comments

@Hakuz
Copy link

Hakuz commented May 8, 2024

Required check list:

  • [ x] I didn't find in the repository's issues section a similar bug.
  • [ x] I understand, this is an Open Source and not-for-profit product.
  • [ x] This is not about a third-party project, framework, or technology.

My environment:

Gowebly CLI: v2.5.0 (build with go1.22.2 on darwin/arm64)

│ Go: 1.22.2 darwin/arm64
│ Node.js version: not installed (npm not installed)
│ Bun version: 1.1.7

│ Is Air tool installed? true
│ Is Templ package installed? true
...

Describe the bug:

Getting Oops message while trying to create the project...

✕ Oops... Something went wrong!


│ failed to run action 'install project dependencies' in goroutine: can't execute command 'bun' with option '[run build]': exit status 1

In the next retry got different message
✕ Oops... Something went wrong!

│ failed to run action 'generate backend files' in goroutine: file '.dockerignore' is exists, can't be overwritten (clean up first)

Steps to reproduce the behavior:

  1. Use Air tool : Yes
  2. Use Bun as framework : Yes
  3. Use Templ package : Yes
  4. use Golang CI lint : Yes
  5. Select the go framework or router : Echo
  6. select the reactivity library : htmx
  7. Select the CSS library : Tailwind CSS with Preline UI components
  8. What's your go module name : testgw
  9. project name in package json : gowebtest
  10. port for backend server : 7000

Expected behavior:

A working project with selected dependencies
...

Screenshots:

...

Additional context:

...

@Hakuz Hakuz added bug Something isn't working help wanted Extra attention is needed labels May 8, 2024
@koddr
Copy link
Contributor

koddr commented May 8, 2024

Hi, @Hakuz

This is because Parcel bundler gets error when running bun install, like this:

TypeError: m.load is not a function. (In 'm.load(filePath)', 'm.load' is undefined)
      at load (/Users/user/project/node_modules/@parcel/package-manager/lib/index.js:3624:13)

10 |   }
11 | }
12 |
13 | let binding;
14 | try {
15 |   binding = require(name);
     ^
TypeError: symbol 'napi\_register\_module\_v1' not found in native module. Is this a Node API (napi) module?
      at dlopen (native:1:1)
      at /Users/user/project/node_modules/@parcel/watcher/index.js:15:2
      at anonymous (native:1:1)
      at /Users/user/project/node_modules/@parcel/fs/lib/index.js:21:5
      at anonymous (native:1:1)
      at /Users/user/project/node_modules/@parcel/package-manager/lib/index.js:35:5
      at anonymous (native:1:1)
      at /Users/user/project/node_modules/@parcel/core/lib/worker.js:102:1
      at anonymous (native:1:1)
      at /Users/user/project/node_modules/@parcel/workers/lib/child.js:111:19
10 |   }
11 | }
12 |
13 | let binding;
14 | try {
15 |   binding = require(name);
     ^

I'll figure it out, but I'd appreciate some help in fixing the Parcel failure.

@koddr
Copy link
Contributor

koddr commented May 8, 2024

BTW, I create bug report in Parcel repo: parcel-bundler/parcel#9707

@Hakuz
Copy link
Author

Hakuz commented May 8, 2024

For now i uninstalled the bun and installed the nodejs and it started to work. Will switch to bun once the Parcel fixes the issues. Thanks for your quick help.

@koddr koddr added dependencies Pull requests that update a dependency file and removed bug Something isn't working help wanted Extra attention is needed labels May 10, 2024
@koddr koddr closed this as not planned Won't fix, can't repro, duplicate, stale May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

2 participants