Skip to content

The build fails when using @react-router/dev version 7.6.1 or later #93

@fossamagna

Description

@fossamagna

Version

No response

Describe the problem

The error occurs because the build cannot open the server/assets directory.
This issue is caused by the change introduced in remix-run/react-router#13547, which removed the server/assets directory.

Additional info

✗ Build failed in 1.76s
[[react-router-amplify-hosting] ENOENT: no such file or directory, lstat '/Users/fossamagna/git/react-router-amplify/packages/vite-plugin-react-router-amplify-hosting/.tmp/integration/rr-hob2h3gk8sg/build/server/assets'
Error: ENOENT: no such file or directory, lstat '/Users/fossamagna/git/react-router-amplify/packages/vite-plugin-react-router-amplify-hosting/.tmp/integration/rr-hob2h3gk8sg/build/server/assets'] {
  errno: -2,
  code: 'PLUGIN_ERROR',
  syscall: 'lstat',
  path: '/Users/fossamagna/git/react-router-amplify/packages/vite-plugin-react-router-amplify-hosting/.tmp/integration/rr-hob2h3gk8sg/build/server/assets',
  pluginCode: 'ENOENT',
  plugin: 'react-router-amplify-hosting',
  hook: 'writeBundle'
}

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions