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

ripplesurface.jsx module no found #2

Open
blackchicken20 opened this issue Feb 12, 2024 · 2 comments
Open

ripplesurface.jsx module no found #2

blackchicken20 opened this issue Feb 12, 2024 · 2 comments

Comments

@blackchicken20
Copy link

./node_modules/react-ripples-continued/dist/main.js:1:0
Module not found: Can't resolve './RippleSurface.jsx'

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

Import trace for requested module:
./components/myButton.tsx
./app/(auth)/login/page.tsx

my code

'use client'
import React from 'react';
import {useFormStatus} from "react-dom";
import {Ripples} from "react-ripples-continued";

const MyButton = ({children}: { children?: React.ReactNode }) => {
    const {pending} = useFormStatus()
    return (
        <>
            <button
                type="submit"
                className="flex w-full justify-center rounded-md bg-indigo-600 px-3 py-1.5 text-sm font-semibold leading-6 text-white hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600
                               disabled:bg-gray-300
                                "
                disabled={pending}

            >
                {children}
                <Ripples/>
            </button>
        </>
    );
};

export default MyButton;
@balazshevesi
Copy link
Owner

I will look into it soon

@balazshevesi
Copy link
Owner

Sorry for the late response. I couldn't reproduce the Error in next.js, though i found a similar one with Astro.

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

2 participants