Next.js Discord

Discord Forum

Deploying to Github Pages a TailwindUI Spotlight Template. Problem with Next MDX

Unanswered
Northeast Congo Lion posted this in #help-forum
Open in Discord
Northeast Congo LionOP
While deploying this failed the build

./src/pages/articles/my-cats/index.mdx
Module parse failed: Unexpected token (27:26)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| }
|
export default (props) => <ArticleLayout meta={meta} {...props} />
|
| Just wanted to share my Cats

Import trace for requested module:
./src/pages/articles/my-cats/index.mdx
./src/pages/articles/ lazy ^./.*$ namespace object
./src/lib/getAllArticles.js


Yarn build, Yarn export works fine.

0 Replies