Upgrading to version 2.0.1 fails #629

Closed
opened 2025-08-09 17:17:01 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @shaunrfield on 6/27/2017

We have this package include as a devDependencies. Whilst it doesn't cause npm install to fail the error in the output causes our dotnet build break. You can easily replicate the issue by running the install just for this package -

Command
npm install aspnet-webpack-react@2.0.1

Output

> aspnet-webpack-react@2.0.1 postinstall D:\Development\PromappApi\PromappApiClient\node_modules\aspnet-webpack-react
> node scripts/postinstall.js

{ Error: Found '{' where a key name was expected (check your syntax or use quotes if the key name includes {}[],: or whitespace) at line 1,1 >>>{
  "compileOnSave" ...
    at error (D:\Development\PromappApi\PromappApiClient\node_modules\hjson\lib\hjson-parse.js:40:11)
    at keyname (D:\Development\PromappApi\PromappApiClient\node_modules\hjson\lib\hjson-parse.js:158:9)
    at object (D:\Development\PromappApi\PromappApiClient\node_modules\hjson\lib\hjson-parse.js:356:15)
    at rootValue (D:\Development\PromappApi\PromappApiClient\node_modules\hjson\lib\hjson-parse.js:426:28)
    at module.exports (D:\Development\PromappApi\PromappApiClient\node_modules\hjson\lib\hjson-parse.js:444:10)
    at Object.parse (D:\Development\PromappApi\PromappApiClient\node_modules\hjson\lib\hjson.js:161:14)
    at ensureTsConfigContainsTypesEntry (D:\Development\PromappApi\PromappApiClient\node_modules\aspnet-webpack-react\scripts\postinstall.js:31:39)
    at Object.<anonymous> (D:\Development\PromappApi\PromappApiClient\node_modules\aspnet-webpack-react\scripts\postinstall.js:51:5)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10) hint: '' }
promapp-api-client@1.0.0 D:\Development\PromappApi\PromappApiClient
`-- aspnet-webpack-react@2.0.1  invalid
  +-- @types/webpack@2.2.15
  | +-- @types/node@8.0.3
  | +-- @types/tapable@0.2.3
  | `-- @types/uglify-js@2.6.29
  |   `-- @types/source-map@0.5.0
  `-- hjson@2.4.3

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN promapp-api-client@1.0.0 No repository field.
*Originally created by @shaunrfield on 6/27/2017* We have this package include as a devDependencies. Whilst it doesn't cause npm install to fail the error in the output causes our dotnet build break. You can easily replicate the issue by running the install just for this package - Command `npm install aspnet-webpack-react@2.0.1` Output ``` > aspnet-webpack-react@2.0.1 postinstall D:\Development\PromappApi\PromappApiClient\node_modules\aspnet-webpack-react > node scripts/postinstall.js { Error: Found '{' where a key name was expected (check your syntax or use quotes if the key name includes {}[],: or whitespace) at line 1,1 >>>{ "compileOnSave" ... at error (D:\Development\PromappApi\PromappApiClient\node_modules\hjson\lib\hjson-parse.js:40:11) at keyname (D:\Development\PromappApi\PromappApiClient\node_modules\hjson\lib\hjson-parse.js:158:9) at object (D:\Development\PromappApi\PromappApiClient\node_modules\hjson\lib\hjson-parse.js:356:15) at rootValue (D:\Development\PromappApi\PromappApiClient\node_modules\hjson\lib\hjson-parse.js:426:28) at module.exports (D:\Development\PromappApi\PromappApiClient\node_modules\hjson\lib\hjson-parse.js:444:10) at Object.parse (D:\Development\PromappApi\PromappApiClient\node_modules\hjson\lib\hjson.js:161:14) at ensureTsConfigContainsTypesEntry (D:\Development\PromappApi\PromappApiClient\node_modules\aspnet-webpack-react\scripts\postinstall.js:31:39) at Object.<anonymous> (D:\Development\PromappApi\PromappApiClient\node_modules\aspnet-webpack-react\scripts\postinstall.js:51:5) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) hint: '' } promapp-api-client@1.0.0 D:\Development\PromappApi\PromappApiClient `-- aspnet-webpack-react@2.0.1 invalid +-- @types/webpack@2.2.15 | +-- @types/node@8.0.3 | +-- @types/tapable@0.2.3 | `-- @types/uglify-js@2.6.29 | `-- @types/source-map@0.5.0 `-- hjson@2.4.3 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm WARN promapp-api-client@1.0.0 No repository field. ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#629
No description provided.