question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for aws-amplify?

See original GitHub issue

Which Remix packages are impacted?

  • remix (Remix core)

What version of Remix are you using?

1.0.6

Steps to Reproduce

Install aws-amplify: npm i aws-amplify

Use it in the project:

import Amplify from 'aws-amplify';

export default function App() {
    useEffect(() => {
       Amplify.configure({...});
    }, []);

    return (
        <Document>
            <Layout>
                <Outlet />
            </Layout>
        </Document>
    );
}

Expected Behavior

It should work, just like before.

Actual Behavior

I am pretty new to remix and ssr altogether. Also aws states that aws-amplify supports ssr, I cannot get it to work. Whenever I am executing the code above, I get an error:

Uncaught TypeError: Failed to resolve module specifier “url”. Relative references must start with either “/”, “./”, or “…/”.

I am also curious: Is that code I put into the useEffect actually executed on the server or in the browser? I just would like to run aws-amplify in the browser, to get my old app-logic going…

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:5
  • Comments:33 (5 by maintainers)

github_iconTop GitHub Comments

12reactions
calaveracommented, Apr 1, 2022

👋 @acusti It’s currently not possible to deploy Remix apps using the Amplify Hosting SSR implementation because it’s designed to work with Next.js at the moment. We’re working on several improvements that would remove that limitation. Now that I’m aware of this thread, I’ll keep you all informed here when we have news worth sharing.

9reactions
ErikCHcommented, Mar 24, 2022

Hello @pckilgore and @misantronic !

I’m with the Amplify team, and with our latest release, I’ve been able to get Remix working with the Amplify library. We are still testing it, so if you find any issues let me know.

Here is our documentation.

https://ui.docs.amplify.aws/getting-started/installation

Read more comments on GitHub >

github_iconTop Results From Across the Web

Full Stack Development - Web and Mobile Apps - AWS Amplify
AWS Amplify is a complete solution that lets frontend web and mobile developers easily build, ship, and host full-stack applications on AWS, ...
Read more >
AWS Amplify Docs
Amplify documentation - Learn how to use Amplify to develop and deploy cloud-powered mobile and web apps.
Read more >
AWS Amplify (@AWSAmplify) / Twitter
AWS Amplify Hosting is announcing Next.js 13 support! Build a Next.js app that uses SSR, ISR, or SSG ...
Read more >
What is AWS Amplify?
AWS Amplify lets you securely sync and store data seamlessly between applications with the help of Amazon AppSync and Amazon S3. It also...
Read more >
aws-amplify/amplify-js: A declarative JavaScript library for ...
AWS Amplify provides a declarative and easy-to-use interface across different categories of cloud operations. AWS Amplify goes well with any JavaScript based ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found