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

[Bug] Build Issue with AWS #2

Closed
cnbrkkaya opened this issue Jan 24, 2020 · 2 comments
Closed

[Bug] Build Issue with AWS #2

cnbrkkaya opened this issue Jan 24, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@cnbrkkaya
Copy link

cnbrkkaya commented Jan 24, 2020

Version

latest

Reproduction link

https://master.d1bhhsz8gxg2gx.amplifyapp.com/

Operating System

AWS Amplify

Device

Amplify

Browser & Version

Chrome@latest

Steps to reproduce

-I download product file i make custom configurations for my purpose. When i work with localhost everything is fine.
-I entegrate the project with Aws Amplify, i add authentication and other custom things , again localhost is fine there is no problem with cloud resources.
-Then i want to build the product and deploy to aws i get errors. But when i do exact steps without your product for example when i follow these steps with normal create-react-app application everything is fine.

What is expected?

Build in aws resources and deploy correctly.

What is actually happening?

I can deploy the product to
" https://master.d1bhhsz8gxg2gx.amplifyapp.com/ "
But I get these Errors

5
And here is my scripts in package.json
"scripts": { "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject", "compile-sass": "node-sass src/assets/scss/now-ui-dashboard.scss src/assets/css/now-ui-dashboard.css", "minify-sass": "node-sass src/assets/scss/now-ui-dashboard.scss src/assets/css/now-ui-dashboard.min.css --output-style compressed", "map-sass": "node-sass src/assets/scss/now-ui-dashboard.scss src/assets/css/now-ui-dashboard.css --source-map true", "install:clean": "rm -rf node_modules/ && rm -rf package-lock.json && npm install && npm start" },
Do i have to make any configuration for these scripts ?

Solution

AWS use these template to build projects , maybe we need to make some configuration in the template for your product. Do i need to add additional build commands for your product ?

3

Thank you all !

@einazare
Copy link
Contributor

Hello there, @cnbrkkaya ,

Thank you for your interest in working with our products.
Please delete the homepage prop from our package.json, it points to our Github repository, and when you build the product, the built version will make the homepage prop as base href.

Let me know if that worked.

Best,
Manu

@einazare einazare added the bug Something isn't working label Jan 27, 2020
@cnbrkkaya
Copy link
Author

Thanks for your help
I delete the homepage prop in package.json and everything is fine now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants