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

🐛 BUG: Built React typescript app does not serve the page when using remote stream #3892

Open
1 task done
ardeshireshghi opened this issue Mar 16, 2022 · 0 comments
Open
1 task done

Comments

@ardeshireshghi
Copy link

ardeshireshghi commented Mar 16, 2022

Quick checklist

  • I am using the latest version of Snowpack and all plugins.

What package manager are you using?

npm

What operating system are you using?

macOS

Describe the bug

When using remote streaming via source: remote and trying to serve the built files/bundles, I receive an error from the browser. This is because as opposed to dev mode, the browser tries to load http://localhost:3000/_snowpack/pkg/react which does not end with .js and as a result it throws an error as below:

Screenshot 2022-03-16 at 1 50 36 PM

Steps to reproduce

  1. I used create-skypack-app with Typescript templete
  2. Tried npm yarn build and use serve build and I can see the page
  3. I change config packageOptions: { source: 'remote', }, and run the build and serve
  4. I get error from the browser (see screen shot)5. Error! Describe what went wrong (and what was expected instead)...

Link to minimal reproducible example (optional)

No response

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

1 participant