0

How to make Snowpack ignore all .TS and the like files?

What I've tried:

In my snowpack.config.js file, I have tried to ignore .ts files like so:

exclude:['**/*.ts']

After that didn't work, I tried running the snowpack --reload command to see if that would fix things but it didn't I still got a type error from a ".ts" file, it said:

Build Result Error: There was a problem with a file build result. Error: Transform failed with 1 error: [path-to-file].ts:1:27: error: Expected "}" but found "string"

After using --verbose I saw that it wasn't ignoring any typescript files at all.

I'm not even using any .ts files, I am just using the typescript compiler (tsc) to compile my code alogside Snowpack, and then using the generated javascript files.

Fighter178
  • 303
  • 2
  • 9
  • Note: I am running `snowpack dev` and that's where the error cropped up, `snowpack build` also seems to cause issues – Fighter178 Feb 12 '23 at 00:53

0 Answers0