Skip to content

Bug at render-markdown stage of tutorial: Must use import to load ES Module #27758

Answered by stefanprobst
danbarker asked this question in Help
Discussion options

You must be logged in to vote

remark (and the unified ecosystem more broadly) is currently transitioning to ESM-only, yes. so you could try just using a previous version (remark@13 should work i think) - or you can try if it works with setting:

// next.config.js
const config = {
  experimental: {
    esmExternals: true,
  },
}
module.exports = config

(requires next@canary version)

Replies: 3 comments 14 replies

Comment options

You must be logged in to vote
9 replies
@BraydenTW
Comment options

@leerob
Comment options

@BraydenTW
Comment options

@leerob
Comment options

@BraydenTW
Comment options

Answer selected by danbarker
Comment options

You must be logged in to vote
2 replies
@stefanprobst
Comment options

@danbarker
Comment options

Comment options

You must be logged in to vote
3 replies
@leerob
Comment options

@olets
Comment options

@leerob
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
7 participants