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

require('u' + 'rl') #3702

Closed
Electroid opened this issue Jul 20, 2023 · 2 comments · Fixed by #3708
Closed

require('u' + 'rl') #3702

Electroid opened this issue Jul 20, 2023 · 2 comments · Fixed by #3708
Labels
bug Something isn't working bundler Something to do with the bundler transpiler parser || printer

Comments

@Electroid
Copy link
Contributor

Electroid commented Jul 20, 2023

It seems like require('u' + 'rl') in Vite breaks when trying to run SolidStart with the latest canary 0.7.

Error: Cannot find package "u" from [...]/vite/dist/node-cjs/publicUtils.cjs

Originally posted by @birkskyum in #250 (comment)

@Electroid Electroid added the bug Something isn't working label Jul 20, 2023
@birkskyum
Copy link
Collaborator

birkskyum commented Jul 20, 2023

Repro:

  • Go to new directory
  • bun x create-solid@latest
  • Select either option regarding template (bare is the simplest Hello World example)
  • Select either option regarding SSR
  • Select either option regarding TypeScript
  • bun i
  • bun --bun run dev

Producing:

error: Cannot find package "u" from "./node_modules/vite/dist/node-cjs/publicUtils.cjs"
error: script "dev" exited with code 1 (SIGHUP)

Versions:
bun 0.7 (canary)
solid-start 0.2.26

Machine:
macOS 13.4.1
Arm64

@birkskyum
Copy link
Collaborator

SolidStart use a node adapter by default. There is a community provided bun adapter as well here that uses Bun.serve(), but it results in the same error.

@dylan-conway dylan-conway mentioned this issue Jul 20, 2023
@paperdave paperdave added transpiler parser || printer bundler Something to do with the bundler labels Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working bundler Something to do with the bundler transpiler parser || printer
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants