haydenbleasel / website

My personal website.
https://haydenbleasel.com
96 stars 12 forks source link

Contentlayer parsing issue for code blocks #174

Closed haydenbleasel closed 5 months ago

haydenbleasel commented 5 months ago
 EvalError: Code generation from strings disallowed for this context
    at (node_modules/.pnpm/next-contentlayer2@0.4.6_contentlayer2@0.4.6_esbuild@0.20.1__esbuild@0.20.1_next@15.0.0-rc.0__ipt4z3hnpczn3kvcp5kc2i5nui/node_modules/next-contentlayer2/dist/hooks/useMDXComponent.js:10:0)
    at (components/mdx.tsx:67:20)
    at (node_modules/.pnpm/next@15.0.0-rc.0_@babel+core@7.24.0_@opentelemetry+api@1.8.0_babel-plugin-react-compiler@0.0._iqb25ggalwtbuciopmt2l3xizy/node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.production.js:949:14)
    at (node_modules/.pnpm/next@15.0.0-rc.0_@babel+core@7.24.0_@opentelemetry+api@1.8.0_babel-plugin-react-compiler@0.0._iqb25ggalwtbuciopmt2l3xizy/node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.production.js:1019:8)
    at (node_modules/.pnpm/next@15.0.0-rc.0_@babel+core@7.24.0_@opentelemetry+api@1.8.0_babel-plugin-react-compiler@0.0._iqb25ggalwtbuciopmt2l3xizy/node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.production.js:1281:10)
    at (node_modules/.pnpm/next@15.0.0-rc.0_@babel+core@7.24.0_@opentelemetry+api@1.8.0_babel-plugin-react-compiler@0.0._iqb25ggalwtbuciopmt2l3xizy/node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.production.js:1084:39)
    at (node_modules/.pnpm/next@15.0.0-rc.0_@babel+core@7.24.0_@opentelemetry+api@1.8.0_babel-plugin-react-compiler@0.0._iqb25ggalwtbuciopmt2l3xizy/node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.production.js:1622:16)
    at (node_modules/.pnpm/next@15.0.0-rc.0_@babel+core@7.24.0_@opentelemetry+api@1.8.0_babel-plugin-react-compiler@0.0._iqb25ggalwtbuciopmt2l3xizy/node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-server.edge.production.js:1642:10) {
  digest: '347060482'
}
haydenbleasel commented 5 months ago

Fixed, requires Node.js runtime.