-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation doesn't mention need to install prismjs alongside plugin #265
Comments
Duplicate of #194. I need a reproducible test case to be able to investigate. |
Thanks for the speedy reply. Here's a repro case: https://github.com/skitterm/next-js-plugin-repro-case I don't think this is a duplicate of #194, since that is a reference error and this is a compile error. |
|
I installed |
|
I updated with that change, but am still seeing the error. |
I'm not having any issues building & running the project: Jamess-iMac in ~/Code/JavaScript/next-js-plugin-repro-case
± |master ✓| → npm ci
added 280 packages, and audited 281 packages in 6s
found 0 vulnerabilities
Jamess-iMac in ~/Code/JavaScript/next-js-plugin-repro-case
± |master ✓| → npm run build
> next-js-plugin-repro-case@1.0.0 build
> next build && next export
info - Using webpack 5. Reason: Enabled by default https://nextjs.org/docs/messages/webpack5
info - Checking validity of types
warn - No ESLint configuration detected. Run next lint to begin setup
info - Creating an optimized production build
info - Compiled successfully
info - Collecting page data
info - Generating static pages (3/3)
info - Finalizing page optimization
Page Size First Load JS
┌ ○ / (346 ms) 199 kB 266 kB
└ ○ /404 194 B 67.3 kB
+ First Load JS shared by all 67.1 kB
├ chunks/framework.3e4d63.js 42 kB
├ chunks/main.8d1561.js 23.3 kB
├ chunks/pages/_app.1a580d.js 979 B
└ chunks/webpack.90a60b.js 838 B
λ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps)
○ (Static) automatically rendered as static HTML (uses no initial props)
● (SSG) automatically generated as static HTML + JSON (uses getStaticProps)
(ISR) incremental static regeneration (uses revalidate in getStaticProps)
info - Using webpack 5. Reason: Enabled by default https://nextjs.org/docs/messages/webpack5
info - using build directory: /Users/jamesdigioia/Code/JavaScript/next-js-plugin-repro-case/.next
info - Copying "static build" directory
info - No "exportPathMap" found in "next.config.js". Generating map from "./pages"
info - Launching 3 workers
info - Exporting (2/2)
Export successful. Files written to /Users/jamesdigioia/Code/JavaScript/next-js-plugin-repro-case/out
Jamess-iMac in ~/Code/JavaScript/next-js-plugin-repro-case
± |master ✓| → npm start
> next-js-plugin-repro-case@1.0.0 start
> next start
ready - started server on 0.0.0.0:3000, url: http://localhost:3000 The highlighting works but there's no theme configured, so there's no styles applied to the highlighting. |
I'm getting the following error when trying to compile my Next.js app, using this plugin:
My .babelrc:
My React component:
Dependencies in package.json:
I've scoured my setup but don't see anything awry.
Any ideas?
The text was updated successfully, but these errors were encountered: