leafac / rehype-shiki

Rehype plugin to highlight code blocks with Shiki
MIT License
31 stars 3 forks source link

Module build failed: UnhandledSchemeError: Reading from "node:assert/strict" is not handled by plugins (Unhandled scheme). Webpack supports "data:" and "file:" URIs by default. #10

Closed iamhectorsosa closed 1 year ago

iamhectorsosa commented 1 year ago

Hey, @leafac

Getting this error? Any ideas on what may be going on? I'm using Next 13, node: 'v16.13.1', npm: '8.1.2'.

error - node:assert/strict
Module build failed: UnhandledSchemeError: Reading from "node:assert/strict" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "node:" URIs.
Import trace for requested module:
node:assert/strict
./node_modules/@leafac/html/build/index.mjs
./node_modules/@leafac/rehype-shiki/distribution/index.js
Could not find files for / in .next/build-manifest.json
Could not find files for / in .next/build-manifest.json

Seems to be related to https://github.com/vercel/next.js/pull/45149