solid / solidproject.org

Website for solidproject.org
https://solidproject.org
MIT License
148 stars 101 forks source link

"Building your first Solid app" example CodeSandbox not working #756

Open Shawn-sudo opened 1 year ago

Shawn-sudo commented 1 year ago

Search terms you've used I searched "CodeSandbox" in this repository issues. There was none

Describe the bug On this page, the CodeSandbox example for the example app doesn't work with error message: "SyntaxError / Identified 'process' has already been declared" (or "Cannot declare a const variable twice: 'process'." on Safari)

To Reproduce Steps to reproduce the behavior:

  1. Go to https://solidproject.org/developers/tutorials/first-app
  2. Scroll down a bit, and click "Edit on CodeSandbox"
  3. Wait for like 5 seconds
  4. Boom
  5. Even if I open the page on a new tab as instructed, I see this error. I guess the instruction there isn't related to this issue.

Expected behavior There should be no error message popping up

Screenshots

Screenshot 2023-01-16 at 4 48 04 PM

Desktop: (I don't think this error message is linked with a specific platform)

Additional context Add any other context about the problem here. I'm new to Solid community

Shawn-sudo commented 1 year ago

I tried to fix it, but I couldn't find any variable names "process" in the CodeSandbox source code. I'm suspecting that it may be a typing error in the npm Solid package, but not sure.

anuradhawick commented 1 year ago

@Shawn-sudo were you able to fix this? I am having a similar issue. Unable to get the first-app example running.

Shawn-sudo commented 1 year ago

@anuradhawick No I couldn't. I just gave up implementing it

anuradhawick commented 1 year ago

@Shawn-sudo After much struggle I found the example at Inrupt to be functional.

https://docs.inrupt.com/developer-tools/javascript/client-libraries/tutorial/getting-started/