aws-solutions/network-orchestration-for-aws-transit-gateway

Module not found: Error: Can't resolve './components/context'

Closed this issue · 7 comments

ui build is giving the module not found error.

Module not found: Error: Can't resolve './components/context' in '/opt/network-orchestration-for-aws-transit-gateway/deployment/regional-s3-assets/ui/src'

image

Got the same error on V3.3.3 as well.

image

@groverlalit Any suggestions on how to fix this?

I am not able to duplicate this issue. I built it locally and checked in the build pipeline. It finished building with warning. Please see screenshot below. Are you following the steps in README? If not, can you please share steps to duplicate this issue? Thanks for your patience.

Screenshot 2023-10-20 at 4 30 44 PM

Yes. My local environment is Windows, so I launched an AL 2023 EC2 instance and performed the steps as per the Readme file.

The build should have failed unless you are using a Macbook. As you can see in below screenshot the import statement is "components" whereas the directory is "Components"

image

image

I have tried renaming the folder but still it failed

Thanks for finding the root cause. Are you able to build it if you change the directory name?

The directory name has been fixed on the release/v3.3.3 branch. Thanks

Thanks. The fix resolved the issue.