question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] knownEntryPoints is broken since snowpack@3.3.3

See original GitHub issue

Bug 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.

  1. Clone this repo amankkg/snowpack-typescript-react17 (it has snowpack@3.3.3 as dependency)
  2. Run npm start
  3. Open an app at http://localhost:8080
  4. See an error: Uncaught ReferenceError: React is not defined

To Reproduce expected behavior

  1. Install snowpack@3.3.2 by running npm i snowpack@3.3.2
  2. Run npm start
  3. See app executed 'Hello World!'

Expected behavior

An app renders 'Hello World!' with snowpack@3.3.3

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
amankkgcommented, Apr 21, 2021

I can confirm it’s fixed with snowpack@3.3.4 👍 thanks @matthewp

2reactions
matthewpcommented, Apr 20, 2021

Found 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found