Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,559,220
Community Members
 
Community Events
184
Community Groups

Build a NextJS app 12.13.1 brakes on the pipeline with error

Edited

Hi there I'm trying to build and deploy a `nextjs` but my pipeline brakes when building the project.

I'm beginning to believe that there's something wrong with the docker images inside the pipelines or something that I'm not understanding. I had the same problem with a previous project in react , pipeline build process failed with an error message about `node_modules`

The pipeline fails with this error:

$ yarn run build:development && pm2 restart $USER-frontendv2-develop

$ env-cmd -f .env.development next build

/home/$USER/$USER-frontendv2/node_modules/next/dist/telemetry/storage.js:101

notify = ()=>{

^

SyntaxError: Unexpected token =

at Module._compile (internal/modules/cjs/loader.js:723:23)

at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)

at Module.load (internal/modules/cjs/loader.js:653:32)

at tryModuleLoad (internal/modules/cjs/loader.js:593:12)

at Function.Module._load (internal/modules/cjs/loader.js:585:3)

at Module.require (internal/modules/cjs/loader.js:692:17)

at require (internal/modules/cjs/helpers.js:25:18)

at Object.<anonymous> (/home/$USER/$USER-frontendv2/node_modules/next/dist/build/index.js:37:16)

at Module._compile (internal/modules/cjs/loader.js:778:30)

at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)



This is my `pipeline.yml`


image: node:18.12.0


pipelines
:

branches:

main:

- step:

name: Running Lint and Prettier.

script:

- yarn install

- yarn run lint

- yarn prettier

- step:

name: Deploying development 🚀

caches:

- nodeall

- yarn

script:

- echo 'Connecting to remote server to update repo'

- node --version

- yarn --version

- nvm --version

- pipe: atlassian/ssh-run:0.4.1

variables:

SSH_USER: $USER

SERVER: $SERVER_ADRESS

COMMAND: " cd smiling-scripts && bash frontendv2-deploy-development.sh"

# MODE: "script"

# COMMAND: "../smiling-scripts/frontendv2-deploy-development.sh"



definitions:

caches:

nodeall: ./node_modules

yarn: /usr/local/share/.cache/yarn

0 comments

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events