Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting json unmarshall erro go cant handle it #35

Open
balook opened this issue Feb 21, 2022 · 3 comments
Open

Getting json unmarshall erro go cant handle it #35

balook opened this issue Feb 21, 2022 · 3 comments

Comments

@balook
Copy link

balook commented Feb 21, 2022

[W] Non-fatal issue encountered while reading package-lock.json : json: cannot unmarshal object into Go struct field PackageJSON.dependencies of type string

@62040132
Copy link

Hey same here
[W] Non-fatal issue encountered while reading package-lock.json : json: cannot unmarshal object into Go struct field PackageJSON.dependencies of type string

@joohoi
Copy link
Member

joohoi commented Jun 22, 2022

Could you send in an example package.json file that has this issue?

@jayateertha043
Copy link

@joohoi

Here's a sample -

{
  "name": "eneyj",
  "version": "0.1.0",
  "description": "A functional language based on JSON objects.",
  "main": "index.js",
  "scripts": {
    "build": "node node_modules/standard/bin/cmd.js src/*.js src/**/*.js src/**/**/*.js --fix && node src/scripts/formatData.js",
    "test": "node node_modules/standard/bin/cmd.js src/*.js src/**/*.js src/**/**/*.js --fix && node src/scripts/formatData.js && node src/scripts/labelMap.js && node src/test/test.js",
    "pushtowiki": "php ../../../maintenance/importTextFiles.php -s 'Import data' --prefix 'M:' --overwrite data/Z*",
    "pullfromwiki": "php ../../../maintenance/dumpBackup.php --current --filter=namespace:78 > data/backup.xml && node src/scripts/pullFromBackup.js && rm data/backup.xml"
  },
  "author": "Denny Vrandečić",
  "repository": "https://github.com/google/abstracttext/eneyj",
  "license": "Apache-2.0",
  "dependencies": {
    "ajv": "^6.10.2",
    "debug": "^4.1.0",
    "historic-readline": "^1.0.8",
    "json-stringify-safe": "^5.0.1",
    "sync-request": "^6.1.0",
    "uuid": "^7.0.0"
  },
  "devDependencies": {
    "standard": "^12.0.1"
  }
}


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants