Vercel Build Through Github Fails But Works Through Vercel --prod [duplicate] - github

This question already has answers here:
Cannot find module or type declarations while it works in local build
(3 answers)
Closed 7 months ago.
I have my github repo connected to my vercel build for my next.js project, and it auto builds whenever I push to the repo. However, I get this error whenever the Github-deployment builds:
ModuleNotFoundError: Module not found: Error: Can't resolve '../components_nt/tracking/formContent' in '/vercel/path0/pages'
Build error occurred
Error: > Build failed because of webpack errors
at /vercel/path0/node_modules/next/dist/build/index.js:390:19
at async Span.traceAsyncFn (/vercel/path0/node_modules/next/dist/telemetry/trace/trace.js:60:20)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Command "yarn run build" exited with 1
I have tried redeploying, reinstalling my next and node_modules, and clearing the build cache. None of these work for the GitHub way.
However, for some odd reason, if I run vercel --prod then it builds properly and works, but I don't know why. I would appreciate doing the Github way as it is less hassle and more streamlined.
Has anyone else ever experienced this issue? Would really appreciate any help!

Turns out I needed to clear the git cache. Quite a interesting error with a simple fix

Related

deployment from vercel platform using git import

I'm trying to deploy a create-react-app using vercel. I'm doing this by importing the git repository for the page. however, during the deployment process, it keeps throwing this error
[12:35:15.381] Cloning github.com/sirEmmyUche/link-shortener (Branch: main, Commit: 705a378)
[12:35:16.067] Cloning completed: 685.351ms
[12:35:16.299] Looking up build cache...
[12:35:16.431] Build Cache not found
[12:35:16.479] Running "vercel build"
[12:35:17.121] Vercel CLI 28.4.4
Error
[12:35:17.471] sh: react-scripts: command not found
[12:35:17.494] Error: Command "react-scripts build" exited with 127
The error message are the two last line of text under the error. please how do I fix this?

Pytest Github Action failed in Django REST API project

I have updated my workflow action from simple super-linter to PYTEST. I get the following error in github
Run pipenv install --deploy --dev
ERROR: Pipfile not found! Aborting! Please ensure that the file exists and is located in your project root directory.
Error: Process completed with exit code 1.
Super linter is really lazy and fails unnecessarily even if the code is correctly formatted?
I have not added any file in my project? Do I need to?

Ionic4 Unknown browser query

I have practised Ionic a lot so these Problems are not new for me but I am unabale to solve this one.
I am currently trying to migrate my Ionic3 project to Ionic4.
To do this I have created a new Ionic4 tabs project.
Every time I try the Ionic serve command I am getting:
[ng] An unhandled exception occurred: Unknown browser query
basedir=$(dirname "$(echo "$0" | sed -e 's
Maybe you are using old Browserslist or made typo in query.
[ng] See "C:\Users\Admin\AppData\Local\Temp\ng-9er5Id\angular-errors.log" for further details.
[ERROR] ng has unexpectedly closed (exit code 127).
The Log file:
[error] BrowserslistError: Unknown browser query `basedir=$(dirname "$(echo "$0" | sed -e 's`. Maybe you are using old Browserslist or made typo in query.
at unknownQuery (D:\Wisex\Technik\Client\safehome_client\node_modules\browserslist\index.js:204:10)
at D:\Wisex\Technik\Client\safehome_client\node_modules\browserslist\index.js:296:11
at Array.reduce (<anonymous>)
at resolve (D:\Wisex\Technik\Client\safehome_client\node_modules\browserslist\index.js:237:18)
at browserslist (D:\Wisex\Technik\Client\safehome_client\node_modules\browserslist\index.js:361:16)
at new BuildBrowserFeatures (D:\Wisex\Technik\Client\safehome_client\node_modules\#angular-devkit\build-angular\src\utils\build-browser-features.js:17:35)
at generateWebpackConfig (D:\Wisex\Technik\Client\safehome_client\node_modules\#angular-devkit\build-angular\src\utils\webpack-browser-config.js:24:34)
at process._tickCallback (internal/process/next_tick.js:68:7)
at Function.Module.runMain (internal/modules/cjs/loader.js:834:11)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
Does anyone of you have an possible solution for this.
I am really greatful for help cause I takes my days to migrate by now.
Yours,
Benjamin
Do you have the last version of the angular cli?
npm install -g #angular/cli
It might also be useful to post the log
I have spent several hours to fix this .Hope it will help someone
Kindly follow the below steps:
find your npm path from the environmental variable. And copy that path and paste it in notepad
2.Go to control panel ->uninstall the node js
3.after uninstalling,restart the system.
4.Now go to npm path in file explorer.
5.And delete the folder named npm and npm-cache
6.And now install the node(LTS version) and angular(refer from the below link for step by step installation)
https://www.zeolearn.com/magazine/setup-angular-windows
note:Dont run the cmd as administrator.Unless ,the installation fails
7.Once you verified that angular is running fine using ng serve -o
8.Install the ionic by npm install -g ionic#latest
9.And run ionic serve.
10.Hope it helps.Happy coding :)

Codemagic or Fastlane failing while exporting archive for iOS in Flutter projects

Problem
For flutter projects when trying to do CI via Fastlane or Code magic getting an error.
Error(s)
Unable to export archive: 2019-07-19 06:35:19.256
xcodebuild[3381:21183] [MT] IDEDistribution: -[IDEDistributionLogging
_createLoggingBundleAtPath:]: Created bundle at path '/var/folders/r7/d9twdq011sb8d3q1p8f39cdr0000gn/T/Runner_2019-07-19_06-35-19.252.xcdistributionlogs'.
error: exportArchive: Symbols tool failed Error
Domain=IDEFoundationErrorDomain Code=1 "Symbols tool failed"
UserInfo={NSLocalizedDescription=Symbols tool failed} ** EXPORT FAILED
**
Some Extra Detail(s)
This issue is coming with recent master commits in Flutter git.
When using Flutter stable git branch we don't have this issue.
Had the same issue. Running pod install solved on my side. I'm using local Fastlane on flutter beta channel.

Error messege when running 'jekyll build' command on cloud 9

I am a dev student and am having issues with Jekyll. Everytime I run a "jekyll build" command from my cloud 9 terminal I get the following messege:
Liquid Exception: Included file '_includes/archive_post.html' not found in source/404.markdown
jekyll 2.4.0 | Error: Included file '_includes/archive_post.html' not found
can anyone help me with this?
Found the file that is causing your issue:
https://raw.githubusercontent.com/mema82/mema82.github.io/feature/jekyll-theme/source/404.markdown
This file references archive_post.html which is non-existent. If you remove this file, or just remove the code referencing the missing file, Jekyll build should run successfully.