Noah D
09/14/2021, 11:38 PMnpx sst build
+ npx sst deploy
locally and my app builds seemingly fine. So I imagine it is a setting in seed, but might be wrong 🤔 don't seem to be getting all to descriptive of an error message either so a bit stumped atm. Also currently trying to keep it simple to figure this out, so only have one stage (prod), no unit tests running, default region is same as local (ap-southeast-2) and only one stack with a couple endpoints + the frontend stack (see second screenshot)Frank
Noah D
09/15/2021, 1:43 AMfrontend/web
directory does contain react-scripts
Do i need to manually add a pre-build command or something for seed to download those dependencies?
{
"name": "frontend",
"version": "0.1.0",
"private": true,
"dependencies": {
"@ant-design/icons": "^4.6.3",
"@craco/craco": "^6.2.0",
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^11.2.7",
"@testing-library/user-event": "^12.8.3",
"@types/jest": "^26.0.24",
"@types/node": "^12.20.17",
"@types/react": "^17.0.15",
"@types/react-dom": "^17.0.9",
"antd": "^4.16.12",
"aws-amplify": "^4.2.5",
"rc-menu": "^9.0.12",
"react": "^17.0.2",
"react-css-theme-switcher": "^0.3.0",
"react-dom": "^17.0.2",
"react-router-dom": "^5.2.0",
"react-scripts": "4.0.3",
"styled-components": "^5.3.1",
"typescript": "^4.3.5",
"web-vitals": "^1.1.2"
},
"scripts": {
"start": "sst-env -- react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@serverless-stack/static-site-env": "^0.41.1",
"@types/luxon": "^2.0.2",
"@types/react-router-dom": "^5.1.8",
"@types/styled-components": "^5.1.13",
"autoprefixer": "^9.8.6",
"eslint": "^7.31.0",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-react": "^7.24.0",
"eslint-plugin-react-hooks": "^4.2.0",
"gulp": "^4.0.2",
"gulp-csso": "^4.0.1",
"gulp-debug": "^4.0.0",
"gulp-less": "^5.0.0",
"gulp-postcss": "^9.0.0",
"less-plugin-npm-import": "^2.1.0"
}
}
Frank
Frank
before_build
hook via a buildspec - https://seed.run/docs/adding-a-build-specFrank
Noah D
09/15/2021, 6:53 AMJay
Jay
Noah D
09/16/2021, 10:53 AM