apps icon indicating copy to clipboard operation
apps copied to clipboard

[nextjs] An object literal cannot have multiple properties with the same name

Open seanValtech opened this issue 1 year ago • 0 comments

Describe the bug The template creates an object called ComponentLocationSettings which has multiple entries with the same name

To Reproduce Steps to reproduce the behavior:

  1. Create a new app with yarn create contentful-app my-first-next-app --yarn --example nextjs
  2. Go to file pages/index.tsx
  3. See error as two entries have the name locations.LOCATION_PAGE

image

Expected behavior Each entry should have a unique name

seanValtech avatar Mar 19 '24 16:03 seanValtech