Importing createMiddleware() doesn't work as the tutorial suggests in type:module packages #1153
Open
3 tasks done
Labels
bug
Something isn't working
Description
In a type:module package, the suggested way to import
createMiddleware()
doesn't work.Workaround1: Remove the type:module line of your package.json
Workaround2: Change the suggested middleware.js file to something like
Verifications
Mandatory reproduction URL
https://github.com/DamienCassou/next-intl-issue-createMiddleware
Reproduction description
Steps to reproduce:
yarn
yarn run dev
Actual behavior:
Expected behaviour
I see the content of Page.jsx in English.
The text was updated successfully, but these errors were encountered: