Some errors with the minimal example due to it assuming it runs within the main repo
@next/bundle-analyzer isn't in the package.json, so delete from next.config.js all references to it.
yarn dev now errors because yarn.lock refers to deps that are only installed in the context of the main repo. I'm only stealing a slice of the main repo.
the yarn.lock is invalid now, so remove it and yarn again.
yarn dev works now
Notion Test Page ID
not-relevant
How to solve
create a separate repo for the examples so the examples don't make any assumptions about what deps it has available.
Description
Some errors with the minimal example due to it assuming it runs within the main repo
@next/bundle-analyzer
isn't in thepackage.json
, so delete fromnext.config.js
all references to it.yarn.lock
refers to deps that are only installed in the context of the main repo. I'm only stealing a slice of the main repo. the yarn.lock is invalid now, so remove it and yarn again. yarn dev works nowNotion Test Page ID
not-relevant
How to solve
create a separate repo for the examples so the examples don't make any assumptions about what deps it has available.