I have basic Prism.js functionality working with my Next.js site by doing the following things:
Prism.js
Next.js
package.json:
package.json