You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
I have removed any sensitive information from my code snippets and submission.
App Id
d1fusmcnk5bd8d
AWS Region
us-east-1
Amplify Hosting feature
Frontend builds
Frontend framework
Jekyll
Next.js version
N/A
Next.js router
N/A
Describe the bug
I rearranged my project into folders where each folder runs its own package installation and build. However at Build step, amplify console hangs after npm installation (and sometimes during jekyll bundle install) with no errors.
I read that amplify's example to cd into a project folder and also tried monorepo
Project directory :
Context:
My project requires to setup lib folder with npm ci and npm run build and subsequently portal folder should run npm ci , bundle install and npm run build. portal folder outputs a jekyll static site in portal/_site folder which are the artifacts. lib folder is a webpack project and its build will output a css file into portal folder.
I have also tried monorepo but it always fails at certain npm installation or bundle installation with no errors until build timed out at 30 min mark. All the commands that I've written in amplify is tested in local and works.
This is the amplify file which I have tried , also commented out and run simple cd lib and npm ci but it still hanged
Amplify file:
version: 1.0
frontend:
phases:
preBuild:
commands:
# - rvm get stable && rvm install 3.0.0
# - rvm use 3.0.0
# - gem install bundler -v '=2.3.13'
- cd lib && npm ci
# - cd ../portal
# - pwd
# - npm ci
build:
commands:
# - cd ../lib && npm run build
# - cd ../portal
# - bundle update --bundler
# - bundle install
# - ls -a
# - pwd
- |
if [ "${AWS_BRANCH}" = "v2" ]
then
JEKYLL_ENV=production npm run build
else
npm run build
fi
- ls -a
artifacts:
baseDirectory: portal/_site
files:
- '**/*'
cache:
paths: []
Amplify Console screenshot:
Monorepo settings
I also tried monorepo although im not sure if the project is considered a monorepo as lib folder is more of a dependency than it is an app. I only need to serve static files from portal folder , but portal folder relies on lib folder. But regardless, I couldnt get pass the installation phase.
Amplify file:
version: 1
applications:
- appRoot: lib
frontend:
buildPath: /
phases:
preBuild:
commands:
- npm ci
build:
commands:
- npm run build
artifacts:
files:
- '**/*'
baseDirectory: /
cache:
paths: []
- appRoot: portal
frontend:
buildPath: /
phases:
preBuild:
commands:
- rvm get stable && rvm install 3.0.0
- rvm use 3.0.0
- gem install bundler -v '=2.3.13'
- bundle update --bundler
- bundle install
- npm ci
build:
commands:
- |
if [ "${AWS_BRANCH}" = "v2" ]
then
JEKYLL_ENV=production npm run build
else
npm run build
fi
artifacts:
files:
- '**/*'
baseDirectory: /
cache:
paths: []
Amplify console :
hangs here
Previously, amplify was working for me when everything was in root folder. I am wondering if there is something buggy about subfolders package installation for amplify?
Expected behavior
I expect that the console should output an error instead of hanging indefinitely till build time out.
Reproduction steps
see description
Build Settings
see description
Log output
see description
Additional information
No response
The text was updated successfully, but these errors were encountered:
Before opening, please confirm:
App Id
d1fusmcnk5bd8d
AWS Region
us-east-1
Amplify Hosting feature
Frontend builds
Frontend framework
Jekyll
Next.js version
N/A
Next.js router
N/A
Describe the bug
I rearranged my project into folders where each folder runs its own package installation and build. However at Build step, amplify console hangs after npm installation (and sometimes during jekyll bundle install) with no errors.
I read that amplify's example to cd into a project folder and also tried monorepo
Project directory :
Context:
My project requires to setup
lib
folder withnpm ci
andnpm run build
and subsequentlyportal
folder should runnpm ci
,bundle install
andnpm run build
.portal
folder outputs a jekyll static site inportal/_site
folder which are the artifacts.lib
folder is a webpack project and its build will output a css file intoportal
folder.I have also tried monorepo but it always fails at certain npm installation or bundle installation with no errors until build timed out at 30 min mark. All the commands that I've written in amplify is tested in local and works.
This is the amplify file which I have tried , also commented out and run simple cd lib and npm ci but it still hanged
Amplify file:
Amplify Console screenshot:
Monorepo settings
I also tried monorepo although im not sure if the project is considered a monorepo as
lib
folder is more of a dependency than it is an app. I only need to serve static files from portal folder , butportal
folder relies onlib
folder. But regardless, I couldnt get pass the installation phase.Amplify file:
Amplify console :
hangs here
Previously, amplify was working for me when everything was in root folder. I am wondering if there is something buggy about subfolders package installation for amplify?
Expected behavior
I expect that the console should output an error instead of hanging indefinitely till build time out.
Reproduction steps
see description
Build Settings
see description
Log output
see description
Additional information
No response
The text was updated successfully, but these errors were encountered: