Documentation about ts in snowpack is WAAAY too sparse. #2530
Replies: 3 comments 3 replies
-
Version 2.x worked out of the box with TypeScript, no need to install any plugins. I think "@snowpack/plugin-typescript" is set-up automatically for you when you use a template. I used:
Unless you have an unusual build requirement, the new version 3 should be able to create a fully minified optimized production build all out of the box. The only thing missing is source maps, BUT they have been promised for the next release :) |
Beta Was this translation helpful? Give feedback.
-
I hear what you are saying. I think the templates are very important and should be the basis of all the tutorials and general usage instructions. Once the user knows they exist then they will use them by default. Looking at the opening page https://www.snowpack.dev/ it doesn't mention that there are 'create react app' style templates for setting everything up, this is MASSIVE and needs to be stated upfront.
could read something like:
|
Beta Was this translation helpful? Give feedback.
-
Hi @Johnrobmiller I totally agree. I will push to get a typescript starting guide/tutorial out. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Given how great of a build tool Snowpack is, I wish that it were published with a more detailed documentation, especially when it comes to getting Typescript up and running.
In my project, trying to use the "@snowpack/plugin-typescript" plugin out of the box gives the difficult-to-decipher error:
From my point of view as someone who is new to all of this, the obvious thing to do here might be to simply google "snowpack typescript ts" to look for instructions on how to get this up and running... Unfortunately, as of 1/31/20, I could not find anything useful. A more thorough documentation might definitely be able to save people like me a bit of frustration.
Beta Was this translation helpful? Give feedback.
All reactions