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

Unable to resolve "react-merge-refs" from "node_modules/@splinetool/react-spline/dist/ParentSize.js" #189

Open
gameveloster opened this issue Jun 16, 2024 · 3 comments
Labels
question Further information is requested

Comments

@gameveloster
Copy link

import Spline from '@splinetool/react-spline';

export default function MyScreen() {
  return (
    <View>
      <Spline scene="https://prod.spline.design/6Wq1Q7YGyM-iab9i/scene.splinecode" />
    </View>
  );
}

Starting the Expo dev client app on Iphone with this screen will crash with error

iOS Bundling failed 3370ms node_modules/expo-router/entry.js (1532 modules)
Unable to resolve "react-merge-refs" from "node_modules/@splinetool/react-spline/dist/ParentSize.js"

I am using

├── @splinetool/[email protected]
├── @splinetool/[email protected]
├── [email protected]
├── [email protected]
├── [email protected]

Ideas? Thanks

@marcofugaro
Copy link
Contributor

What package manager are you using? react-merge-refs is a dependency automatically installed with react-spline. Your package manager is not installing those.

You can workaround this by adding react-merge-refs as direct dependencies for now.

@marcofugaro marcofugaro added the question Further information is requested label Jun 20, 2024
@alexis2m
Copy link

Workaround not work every time with npm

@gameveloster
Copy link
Author

I am using Yarn 1.22.22.

Adding react-merge-refs as direct dependency does not work for me. I did this by running yarn add react-merge-refs.

I see the react-merge-refs directory in node_modules:

node_modules/react-merge-refs
├── LICENSE
├── README.md
├── dist
│   ├── index.d.ts
│   ├── index.mjs
│   └── index.mjs.map
└── package.json

Still getting the original error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants