HalfdanJ / svelte-adapter-appengine

Utilize the Google Cloud App Engine infrastructure to host SvelteKit content.
Apache License 2.0
64 stars 11 forks source link

Error on generated `package.json`: unmarshalling package.json #184

Closed DanielRios549 closed 4 months ago

DanielRios549 commented 4 months ago

I've got the followwing error when deploy the app: status: FAILURE unmarshalling package.json: json: cannot unmarshal array into Go struct field PackageJSON.dependencies of type map[string]string

The generated package.json is set to an empty array in dependencies, when changed to an empty object it works.

Before:

  {
    "type": "commonjs",
    "dependencies": []
  }

After:

  {
    "type": "commonjs",
    "dependencies": {}
  }
HalfdanJ commented 4 months ago

Few questions

DanielRios549 commented 4 months ago

I just figured out what was causing this: An empty array on adapter dependencies configuration in svelte.config.js. Just remove it and everything works as expected.