Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@babel/runtime required with Next.js 15 #200

Open
nyg opened this issue Oct 26, 2024 · 0 comments
Open

@babel/runtime required with Next.js 15 #200

nyg opened this issue Oct 26, 2024 · 0 comments

Comments

@nyg
Copy link

nyg commented Oct 26, 2024

Hello,

For information, I have the following error with a Next.js 15 project:

 ⨯ ./node_modules/.pnpm/[email protected][email protected]/node_modules/react-marked-renderer/dist/index.mjs:2:1
Module not found: Can't resolve '@babel/runtime/helpers/defineProperty'
  1 | import require$$0, { createContext, useContext, useMemo, useCallback } from 'react';
> 2 | import _defineProperty from '@babel/runtime/helpers/defineProperty';
    | ^
  3 | import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
  4 |
  5 | /**

I solved it by simply adding the @babel/runtime dependency. Not sure why it is needed in this new Next.js version :).

@nyg nyg changed the title Issue with Next.js 15 @babel/runtime required with Next.js 15 Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant