decanter icon indicating copy to clipboard operation
decanter copied to clipboard

Next JS 14 Turbo Compatibility

Open sherakama opened this issue 1 year ago • 0 comments

Error when using Turbo pack and NextJS 14

The Error

Error: error - node_modules/decanter/tailwind.config.js:80:5  Error resolving commonjs request

  78 |     require(`${dir}/components/layout/grid-gap.js`)(),
  79 |     require(`${dir}/components/link/stretched-link.js`)(),
> 80 |     require(`${dir}/components/lists/lists.js`)(),
     |      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  81 |     require(`${dir}/components/logo/logo.js`)(),
  82 |     require(`${dir}/components/media/embed-container.js`)(),
  83 |     require(`${dir}/components/responsive-spacing/responsive-spacing.js`)(),
unable to resolve server relative "/ROOT/node_modules/decanter/src/plugins/components/lists/lists.js"
It was not possible to find the requested file.
    Parsed request as written in source code: server relative "/ROOT/node_modules/decanter/src/plugins/components/lists/lists.js"
    Path where resolving has started: [project]/node_modules/decanter/tailwind.config.js
    Type of request: commonjs request
    Import map: No import map entry

Next dev command "dev": "NODE_OPTIONS='--inspect' DEV=true next dev --turbo",

Repo to reproduce the error: https://github.com/pookmish/cardinal-sites-next/tree/main

sherakama avatar Nov 06 '23 19:11 sherakama