Skip to content

"Can't resolve '@babel/runtime/helpers/objectWithoutPropertiesLoose'" #6

@ericswpark

Description

@ericswpark

Hi, I'm getting the following error when trying to build with react-signature v1.3.2:

 GET / 500 in 22352ms
 ⨯ ./node_modules/.pnpm/@uiw+react-signature@1.3.2_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@uiw/react-signature/esm/Paths.js:1:1
Module not found: Can't resolve '@babel/runtime/helpers/objectWithoutPropertiesLoose'
> 1 | import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
    | ^
  2 | var _excluded = ["renderPath", "container"];
  3 | import React, { Fragment } from 'react';
  4 | import { getStroke } from 'perfect-freehand';

https://nextjs.org/docs/messages/module-not-found

Import trace for requested module:
./node_modules/.pnpm/@uiw+react-signature@1.3.2_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@uiw/react-signature/esm/index.js
./components/secret-modal-description.tsx

I see that react-signature has @babel/runtime in devDependencies but not in dependencies. Is this a manifest issue or something on my end?

"@babel/runtime": "^7.18.9",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions