-
Notifications
You must be signed in to change notification settings - Fork 916
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] Disconcerting warnings and errors in blank Typescript template #3220
Comments
This seems to be a duplicate of #3151. |
Not quite. I agree that #3151 talks about the "preventAssignment" error message. But the "blank Typescript" template also generates warnings. (I believe that switching from Snowpack 3.0.1 to 3.3.4 solves this.) Thanks. |
Could you paste the logs to show which warnings/errors you mean? Also, rollup is used for bundling dependencies so yes, it is used 🙂 . |
The logs are in the README at: https://github.com/richb-hanover/SnowpackTest-26Apr and reproduced here... Starting new Snowpack project
Error on initial start
|
Looks like the initial start error is the one mentioned in #3151. If you walk down the dep tree and check their repos you'll find this: npm/run-script#25 (check the linked PRs for commentary) Finally, you'll also find that Snowpack needs to update their rollup version to get rid of the fsevents warning. With this little research that took me 10 minutes it was possible to figure out:
Which ultimately makes it easier for the maintainer. Now, you can probably submit a PR that updates the rollup version if you wanna help 😃 |
Thank you for tracking all these items down. I appreciate that effort. Your analysis makes sense I am enough of a "techie" to see the power of Snowpack. And I can muddle through. But I also remain a "naive user", and see the bumps along the road - these will slow its adoption. (That's why I put "Disconcerting warnings..." in the title. They're not necessarily bugs, but they make a newcomer wonder if something bad happened, or if, perhaps, the whole project is unreliable.) I can see you're deeply knowledgeable about the Javascript ecosystem and with the Snowpack environment. But it would take me far longer to reach those same conclusions. (And longer, still, to actually make any PRs.) So I point out these problems a) to ask if I'm "doing it wrong" or b) to show where Snowpack could be improved. Is there a better (more helpful) place to make these observations? Could these reports be improved? Many thanks. |
Any feedback is better than no feedback, but yeah if I were to give any advice it would probably be to split the report up by best-effort in the future :) E.g. one thing for the runtime error (that happened to be filed already), one for the package.json warnings, and one for the deprecated dependencies. That way it's easy to track them all separately. But yeah, still thanks for reporting! |
Excellent. I'll separate them in the future. NB: The license warning message is probably correct. You wrote:
But the generated Thanks again! |
@drwpow I just tried the same experiment as above with snowpack 3.8.2 (creating a blank Typescript project with CSA) and got substantially similar errors. I'm not sure these are relevant, but I note that:
I hope this is helpful. Here's the full output
|
Drat. We're stuck for a while. See: npm/cli#3525 (comment) But maybe you can fix the rollup dependency... |
Thanks for checking back in on this. The Rollup dependency version is locked because of a pretty big bug that was introduced in a minor release, that still hasn’t been fixed: #2572. Updating Rollup to latest counterintuitively hurts our package support (if you ever see a As for the Arborist <> node-gyp issue… yeah I’m also not too crazy about having that dependency be in Snowpack. I’d like to find a way to keep a lot of smart dependency tree parsing that Snowpack does, without incurring some of the slowness and weirdness of Arborist. |
OK. Now we all know that it has been checked. (My company's unofficial slogan was, "We promise not to fix it if we don't know it's broke" :-) |
Bug Report Quick Checklist
Describe the bug
The blank Typescript template gives several warnings/error messages. This is disconcerting for people who are new to Snowpack, and just trying it out...
To Reproduce
Read the README.md for details, but the outline is:
npx create-snowpack-app test26mar --template @snowpack/app-template-blank-typescript --use-yarn
package.json
yarn
yarn start
gives a Rollup preventAssignment error even though Rollup is not (obviously) being usedExpected behavior
No errors or warnings from the
npx
oryarn start
commandsAnything else?
Demo repo and README.md at: https://github.com/richb-hanover/SnowpackTest-26Apr
The text was updated successfully, but these errors were encountered: