sheldhur/cross-browser-extension-boilerplate

Type assertion with build

Closed this issue · 0 comments

On fresh clone, the build fails due to a missing type assertion with package.json.

Expected Behavior

It should build.

Current Behavior

Throws the following error then fails:
TypeError [ERR_IMPORT_ASSERTION_TYPE_MISSING]: Module "file:///Users/williamkasel/Dev/_sandbox/cross-browser-extension-boilerplate/package.json" needs an import assertion of type "json"

Possible Solution

PR is incoming w/ fix.

Steps to Reproduce

  1. Clone Repo
  2. Yarn Install
  3. Yarn start -- --browser=chrome
  4. Build fails...

Context (Environment)

Tried with node 18, and node 16.