parcel-bundler/parcel

Build failed. unknown: Error parsing package.json: Unexpected token  in JSON at position 0

Open

#8378 aperta il 8 ago 2022

Vedi su GitHub
 (4 commenti) (0 reazioni) (0 assegnatari)JavaScript (2274 fork)batch import
:bug: Bug:heavy_check_mark: Confirmed Bug:pray: Help WantedGood First Issue

Metriche repository

Star
 (44.030 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

🐛 bug report

🚨 Build failed.

unknown: Error parsing package.json: Unexpected token  in JSON at position 0

this bug for exist 77u/ char for utf8 file. when save package.json with utf8 encoded added 77u/ char in first of content file. parcel json parser need { char for first. Screenshot 2022-08-08 175010

visual studio and many editor always sign utf8 file with 77u/

Software Version(s)
Parcel 2.7.0
Node 18.7.0
npm/Yarn 8.15.0
Operating System windows 11

Guida contributor