Closed Jagpreet16 closed 6 years ago
@Jagpreet16 if you could set up a public sample project on the gitlab with the mentioned errors, we could help to spot on it.
Otherwise, it's difficult for us to help. Make sure you use the latest stable version of angular-cli and refer to https://github.com/teracyhq/docker-files/tree/master/angular-cli and https://github.com/teracyhq-incubator/angular-boilerplate for reference
Let me know if that works for you.
You should use teracy/angular-cli:1.4.9 or teracy/angular-cli:1.5.0 and refer to https://github.com/teracyhq-incubator/angular-boilerplate/tree/develop for a working reference, CI works on travis-ci, it's expected that it should work on gitlab-ci, too.
Thanks @hoatle for your response. It may take me some time to set up a sample project. I will do that. Meanwhile, I am using the below configuration in my gitlab.yml file. I am not specifying the version anywhere.
build_feature:
tags:
- build-grc
image: teracy/angular-cli
script: "
ng build --dev --app app;
ng build --dev --app auth;
mv ng/auth/auth.html ng/auth/index.html; "
stage: build-dev
artifacts:
when: on_success
expire_in: 1h
untracked: true
paths:
- ng/
Any suggestions?
Sorry, without a sample project with detailed console log, I can't tell what is the root cause to fix the problem.
close now, free to reopen if you want to provide more information.
Hi Team,
I am facing this issue from past 4 days. I am using the image teracy/angular-cli to build my project on gitlab. The issue is, with the latest code, the build is failing on gitlab where I use the the image of angular-cli from docker-files. But the same is running successfully on my local enviroment. You can find the logs attached.
Also, my local angular-cli version is 1.0.0-rc.1. You can find the packages.json file below.
Also, below is my npm version on local.
In short the error I am receiving while deploying with teracy/angular-cli on gitlab is
ERROR in Error encountered resolving symbol values statically. Could not resolve @asymmetrik/ngx-leaflet/dist relative to /builds/vernuso/trust/src/app/task/task.module.ts., resolving symbol TaskModule in /builds/vernuso/trust/src/app/task/task.module.ts, resolving symbol TaskModule in /builds/vernuso/trust/src/app/task/task.module.ts, resolving symbol TaskModule in /builds/vernuso/trust/src/app/task/task.module.ts
ERROR in /builds/vernuso/trust/src/app/task/task.module.ts (2,31): Cannot find module '@asymmetrik/ngx-leaflet/dist'.)
ERROR in ./src/app/task/task.module.ts Module not found: Error: Can't resolve '@asymmetrik/ngx-leaflet/dist' in '/builds/vernuso/trust/src/app/task' @ ./src/app/task/task.module.ts 11:0-61 @ ./src/app/app.module.ts @ ./src/main.ts @ multi ./src/main.ts logs.txt