Open britt6612 opened 2 years ago
@mAAdhaTTah
Can you provide a reproducible test case?
Also, I'm going to transfer this issue to the babel plugin repo. Edit: No I'm not, it's not owned by the org lol
I can see if I can try to reproduce a test case in JSFiddle, This error just occurred in our team project.
This looks a little similar https://github.com/mAAdhaTTah/babel-plugin-prismjs/issues/194
Did you remove the .next
folder and retry? I haven't gotten a reproducible case for that either.
yes I also tried to remove the .next
folder and then building the project again I got the same error when running yarn build
I'm having similar error after installing it on Next app (v13.22.4). The error occurs when I import any of the prismjs
components ie import "prismjs/components/prism-javascript"
. I'm using version 1.29
I encountered the same error and the problem was in imports organization only, we previously had :
import 'prismjs/components/prism-clike';
import { highlight, languages } from 'prismjs/components/prism-core';
import 'prismjs/components/prism-http';
but the prism-core should be imported first so it was solved by changing it to:
import { highlight, languages } from 'prismjs/components/prism-core';
import 'prismjs/components/prism-clike';
import 'prismjs/components/prism-http';
Information:
Description After upgrading from version 1.24.0 to 1.25.0 I found that when trying to run the project I was receiving the error that
ReferenceError: Prism is not defined
I got the following error above.
My babel is set up as such
Example An example which reproduces the bug. This can be a link to a website, a JSFiddle, an attached example project, etc.