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

Error When Using Solid SSR #3

Closed
shadowtime2000 opened this issue Nov 19, 2020 · 3 comments
Closed

Error When Using Solid SSR #3

shadowtime2000 opened this issue Nov 19, 2020 · 3 comments

Comments

@shadowtime2000
Copy link

If you go to esm.sh/solid-ssr you get the following code:

/* esm.sh - error */
throw new Error("[esm.sh] " + "esbuild: Could not resolve \"solid-ssr\" (mark it as external to exclude it from the bundle)");
export default null;

So basically for some reason Solid SSR doesn't work.

@ije
Copy link
Member

ije commented Nov 20, 2020

the main field in package.json is index.js that dose not exist.

{
  "name": "solid-ssr",
  "description": "Patches node to work with Solid's SSR",
  "version": "0.22.3",
  "main": "index.js",
  ...
}

Screen Shot 2020-11-20 at 13 48 12

@shadowtime2000
Copy link
Author

Thanks @ije! Do you think that the error message could be a bit more descriptive? ("'main' field is index.js, index.js does not exist")

@ije
Copy link
Member

ije commented Nov 20, 2020

nope, the message was emitted by esbuild which i can not touch.

@ije ije closed this as completed Nov 20, 2020
ije added a commit that referenced this issue Jul 2, 2023
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

2 participants