[BUG] knownEntryPoints is broken since snowpack@3.3.3
See original GitHub issueBug Report Quick Checklist
- I am on the latest version of Snowpack & all plugins.
- I use package manager npm.
- I run Snowpack on OS Linux.
- I run Snowpack on Node.js v15
Describe the bug
Using snowpack@3.3.3
, packageOptions.knownEntryPoints
is being ignored (in my case it is 'react/jsx-runtime'
)
To Reproduce
We can’t fix bugs that we can’t see for ourselves. Issues often need to be closed if this section is skipped.
- Clone this repo amankkg/snowpack-typescript-react17 (it has
snowpack@3.3.3
as dependency) - Run
npm start
- Open an app at
http://localhost:8080
- See an error:
Uncaught ReferenceError: React is not defined
To Reproduce expected behavior
- Install
snowpack@3.3.2
by runningnpm i snowpack@3.3.2
- Run
npm start
- See app executed
'Hello World!'
Expected behavior
An app renders 'Hello World!'
with snowpack@3.3.3
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:6 (5 by maintainers)
Top Results From Across the Web
BUG: Circular dependency fix broke starting up with ... - GitHub
I am using the latest version of Snowpack and all plugins. What package manager are you using? npm. What operating system are you...
Read more >snowpack.config.js
knownEntrypoints. Known dependencies to install with Snowpack. Used for installing packages any dependencies that cannot be detected by our automatic import ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I can confirm it’s fixed with
snowpack@3.3.4
👍 thanks @matthewpFound the bug. Turns out it wasn’t related to
knownEntrypoints
, it was not using the result of Babel. Working on a test now, hope to have a patch out later today.