webgpu / webgpu-samples

WebGPU Samples
https://webgpu.github.io/webgpu-samples/
BSD 3-Clause "New" or "Revised" License
1.73k stars 295 forks source link

"npm run build" gives tons of errors #280

Open zhangyiatmicrosoft opened 1 year ago

zhangyiatmicrosoft commented 1 year ago

win10, node v18.16.0, npm 9.5.1, clean clone, npm install followed by "npm run build", tons of errors like these. Did I miss anything? image

ben-clayton commented 1 year ago

Given that all the errors are at the end of lines, this looks like a CRLF vs LF issue (although I'm a little surprised the symbol is displaying as a unicode replacement character).

Try resaving the file with LR line endings.

Note: We should probably add a .gitattributes file to ensure that new checkout all use the same line endings.