Open GabrielPedroza opened 2 years ago
Same. I set the packageOptions.knownEntrypoints
as ['react-is']
in file snowpack.config.mjs
, but not work.
Then I just use yarn add react-is
then it run well. I do not what happen, but I do not want to put my dependence's dependence in my package.json
. Please help.
Same here, but not even yarn add react-is
helped...
If only there was a flag to at least silence that warning, it's a bit much, I mean, one warning OK, but 4?
yarn start
yarn run v1.22.17
$ snowpack dev
[21:21:21] [snowpack] Ready!
[21:21:21] [snowpack] Server started in 11ms.
[21:21:21] [snowpack] Local: http://localhost:8080
[21:21:21] [snowpack] Network: http://192.168.1.7:8080
[21:21:22] [snowpack] react-is: Unscannable package import found.
Snowpack scans source files for package imports at startup, and on every change.
But, sometimes an import gets added during the build process, invisible to our file scanner.
We'll prepare this package for you now, but should add "react-is" to "knownEntrypoints"
in your config file so that this gets prepared with the rest of your imports during startup.
[21:21:22] [snowpack] + react-is@16.13.1
[21:21:22] [snowpack] react-is: Unscannable package import found.
Snowpack scans source files for package imports at startup, and on every change.
But, sometimes an import gets added during the build process, invisible to our file scanner.
We'll prepare this package for you now, but should add "react-is" to "knownEntrypoints"
in your config file so that this gets prepared with the rest of your imports during startup.
[21:21:22] [snowpack] + react-is@16.13.1
[21:21:22] [snowpack] react-is: Unscannable package import found.
Snowpack scans source files for package imports at startup, and on every change.
But, sometimes an import gets added during the build process, invisible to our file scanner.
We'll prepare this package for you now, but should add "react-is" to "knownEntrypoints"
in your config file so that this gets prepared with the rest of your imports during startup.
[21:21:22] [snowpack] + react-is@16.13.1
[21:21:22] [snowpack] react-is: Unscannable package import found.
Snowpack scans source files for package imports at startup, and on every change.
But, sometimes an import gets added during the build process, invisible to our file scanner.
We'll prepare this package for you now, but should add "react-is" to "knownEntrypoints"
in your config file so that this gets prepared with the rest of your imports during startup.
[21:21:22] [snowpack] + react-is@16.13.1
I genuinely don't remember what I did to fix it because it was months ago that I had this but since my project was relatively small, I just deleted the entire project and restarted. I just carefully wrote everything and I didn't have the issue anymore for some odd reason.
Quick checklist
What package manager are you using?
npm
What operating system are you using?
mac
Describe the bug
Getting a unscannable package import.
react-is: Unscannable package import found. Snowpack scans source files for package imports at startup, and on every change. But, sometimes an import gets added during the build process, invisible to our file scanner. We'll prepare this package for you now, but should add "react-is" to "knownEntrypoints" in your config file so that this gets prepared with the rest of your imports during startup.
Steps to reproduce
npx create-snowpack-app
using templateLink to minimal reproducible example (optional)
No response