Support for aws-amplify?
See original GitHub issueWhich 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:
- Created 2 years ago
- Reactions:5
- Comments:33 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

👋 @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.
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