solidproject.org icon indicating copy to clipboard operation
solidproject.org copied to clipboard

"Building your first Solid app" example CodeSandbox not working

Open Shawn-sudo opened this issue 2 years ago • 4 comments
trafficstars

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)

  • OS: macOS 13.1
  • Browser: Brave, Chrome, Safari
  • Version
    • Brave: 1.47.171 Chromium: 109.0.5414.87 (Official Build) (arm64)
    • Chrome: 108.0.5359.124 (Official Build) (arm64)
    • Safari: Version 16.2 (18614.3.7.1.5)

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

Shawn-sudo avatar Jan 16 '23 21:01 Shawn-sudo

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.

Shawn-sudo avatar Jan 16 '23 22:01 Shawn-sudo

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

anuradhawick avatar Jun 07 '23 04:06 anuradhawick

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

Shawn-sudo avatar Jun 07 '23 22:06 Shawn-sudo

@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/

anuradhawick avatar Jun 07 '23 23:06 anuradhawick