mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #327] Build failed #122
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#122
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pierol on GitHub (Nov 22, 2019).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/327
Originally assigned to: @liyasthomas on GitHub.
Describe the bug
Trying to build the package on Windows 10 machine with
npm run buildTo Reproduce
Steps to reproduce the behavior (npm version 6.12.0, node version 12.13.0, SO Windows 10 1909):
npm installnpm run build@liyasthomas commented on GitHub (Nov 22, 2019):
Oh! That seems critical then. Let us investigate what went wrong and get back to you ASAP.
Thanks for reporting.
@liyasthomas commented on GitHub (Nov 23, 2019):
I just built the project on Windows platform and everything seems to be working 😕
Make sure you build the master branch.
@pierol commented on GitHub (Nov 23, 2019):
I tried with a fresh install but the problem persist


@liyasthomas commented on GitHub (Nov 23, 2019):
Can you do a
npm run devand let me know.@pierol commented on GitHub (Nov 23, 2019):
@liyasthomas commented on GitHub (Nov 23, 2019):
Check the root directory and if there exists a folder named
.postwomandelete it. And again runnpm run devThat folder will be created at
npm run dev.Don't forget to close current
localhost:3000windows in browser if there any.@pierol commented on GitHub (Nov 23, 2019):
@liyasthomas commented on GitHub (Nov 23, 2019):
I'll run some more tests and get back to you.
@FatDoge commented on GitHub (Nov 25, 2019):
I meet the same problem, delete the
.postwomandirectory seems useless.System infomation:
Linux VM_202_150_centos 3.10.0-514.21.1.el7.x86_64I use the cloud server offered by Tencent Cloud.
@liyasthomas commented on GitHub (Nov 25, 2019):
Issue has been identified. Will patch soon with a fix.
@FatDoge commented on GitHub (Nov 25, 2019):
.postwoman/version.jsonfile is not normally generated inbuild.js. if you need to use it urgently, you can delete the corresponding import statement and the related code inlayout/default.vuefile first.(Unrecommended)@ghost commented on GitHub (Nov 25, 2019):
ths, please fix it cause i met also some issue like this.
or give me s solution to avoid this
@liyasthomas commented on GitHub (Nov 25, 2019):
We couldn't reproduce the issue at our end.
The
.postwoman/version.jsonis created atnpm run generateas well as atnpm run build.After investigating more, we think this might be an issue with the host system. Since this is device and architecture dependent, we need debug logs to find out what went wrong. Please provide that so that we could reproduce the issues at our end.
@hosseinnedaee commented on GitHub (Nov 25, 2019):
npm run generateandnpm run buildwoks for me on Ubuntu 18.04@liyasthomas commented on GitHub (Nov 25, 2019):
Our CI build is on Linux and it's working fine.
I can also confirm
npm run generateworks on Windows build 1803.@FatDoge commented on GitHub (Nov 26, 2019):
I just clone the code to my pc again.
And everything is okay now...
Below is some information of my local enviroment:
My PC OS is Windows10 Home Chinese Edition 1903.
That's weird, I can't repoduce the problem and I want to know why, I even change the local PC date to yestoday.
I will try again on my linux server and let us see if there is something strange.
The server works fine today.
@liyasthomas commented on GitHub (Nov 26, 2019):
Usually these kinda errors happen when npm cache exists with lower version of dependencies. Delete node_modules, clean the cache, npm install again will solve most of it.
@liyasthomas commented on GitHub (Nov 26, 2019):
Some workarounds:
npm cache cleannpm inpm run buildornpm run generateto buildIf the above steps fails, try:
npm rebuild node-sassnpm run generate@NBTX commented on GitHub (Nov 26, 2019):
@liyasthomas I think this can be closed?
@liyasthomas commented on GitHub (Nov 26, 2019):
This issue is stale and hence closing
@ccenjie commented on GitHub (Dec 19, 2019):
so , how to let it work, i do not see any solution,
Delete node_modules
npm cache clean
npm i
npm run dev or npm run generate
If the above steps fails, try:
npm rebuild node-sass
npm run generate
i do that, but no work
@liyasthomas commented on GitHub (Dec 19, 2019):
Is the error log as same as mentioned in this issue?
@NBTX commented on GitHub (Dec 19, 2019):
Just noticed in this case it may be because they downloaded a zip of the project rather than using git clone.
I believe the build script relies on the directory being a git repository in order to obtain certain information, so the project needs to be cloned rather than a ZIP file simply downloaded.
If I'm right though, I can just update the build script to accommodate this.
@liyasthomas commented on GitHub (Dec 19, 2019):
@NBTX
build.jsis tailored for CI, remove git dependency / online version fetch and if possible, get version frompackage.json. Or else, completely comment out version section from footer. 👍@AndrewBastin commented on GitHub (Feb 9, 2020):
Closing this issue as it seems to be fixed.
@Cedric4real commented on GitHub (Feb 20, 2020):
Cloning definetely solves the issue, thank you.