Comments (11)
Seems that your typescript version is incorrect.
from anytype-ts.
I always thought during these compile steps it would use the locally typescript version that is set in the package.json, which is ^3.9.7
I checked in the node_modules/typescript Folder and the installed one is "version": "3.9.10",
so still in the same range.
Shouldn't be this installed local version be used inside the webpack build step?
Just checked my globally installed tsc - it was 4.1.3 updated that one to the newest - but its the same issue.
Or do I need to downgrade my global tsc to let it compile ?
from anytype-ts.
Installing typescript 3.9.7
globally also results in the same error - so neither an upgrade/downgrade globally helped
from anytype-ts.
After countless reinstalls of everything, I tried the crazy idea to just install the packages using npm ci
install npm install
and those TypeScript "issues" (since the d.ts files looked good) are GONE! 🎉
I assume that all packages are not pinned (to the exact version) the npm install
wanted to be smart and install the updated version of the rules ^
and I guess some sub module of a sub module broke it completely.
If you want I could create a PR to pin those.
Then there is also an issue with the ./update.sh
script - it loads the anytypeHelper binary but does not add it to the dist folder.
After moving the helper to dist the code transpiled and the electron shell opened.
After trying the Join
Button I got this error
ERROR
obj.getNetworkid is not a function
TypeError: obj.getNetworkid is not a function
at Object.AccountInfo (http://localhost:8080/main.js?0.43440902263090764:517268:32)
at Object.Account (http://localhost:8080/main.js?0.43440902263090764:517253:51)
at Module.AccountCreate (http://localhost:8080/main.js?0.43440902263090764:517945:63)
at http://localhost:8080/main.js?0.43440902263090764:517101:75
at Array.<anonymous> (http://localhost:8080/main.js?0.43440902263090764:281904:368)
at Lc (http://localhost:8080/main.js?0.43440902263090764:281897:349)
at qc.<anonymous> (http://localhost:8080/main.js?0.43440902263090764:281895:302)
at Jb (http://localhost:8080/main.js?0.43440902263090764:281873:182)
at O (http://localhost:8080/main.js?0.43440902263090764:281872:614)
at Ac (http://localhost:8080/main.js?0.43440902263090764:281886:68)
at __webpack_modules__../node_modules/grpc-web/index.js.n.W (http://localhost:8080/main.js?0.43440902263090764:281884:252)
at __webpack_modules__../node_modules/grpc-web/index.js.n.R (http://localhost:8080/main.js?0.43440902263090764:281884:231)
at XMLHttpRequest.<anonymous> (http://localhost:8080/main.js?0.43440902263090764:252454:29)
But I'll probably create a different issue for that
Edit: Reverted my Git State to https://github.com/anyproto/anytype-ts/releases/tag/v0.33.3 instead of main branch and the Join Button issue is gone - means this error is in the current main state 😄
from anytype-ts.
Main TS branch could divert from the latest middleware release so using update.sh to build middleware can result in these errors of protocol mismatch, it is recommended to build anytype-heart from sources.
from anytype-ts.
Main TS branch could divert from the latest middleware release so using update.sh to build middleware can result in these errors of protocol mismatch, it is recommended to build anytype-heart from sources.
ok! good to know - that would explain the
ERROR
obj.getNetworkid is not a function
TypeError: obj.getNetworkid is not a function
as for
After countless reinstalls of everything, I tried the crazy idea to just install the packages using npm ci install npm install and those TypeScript "issues" (since the d.ts files looked good) are GONE! 🎉
I assume that all packages are not pinned (to the exact version) the npm install wanted to be smart and install the updated version of the rules ^ and I guess some sub module of a sub module broke it completely.
If you want I could create a PR to pin those.
what do you think about pinning the versions? if accepted I'd create a PR for that
from anytype-ts.
Versions are pinned, you use client from current main and middleware from pinned release, this is ok that they can diverge. If you want a stable current version - use main/main branches, we try to keep them compatible and not merge diverged protocol.
from anytype-ts.
Oh sorry, you meant pinning dependencies, idk actually, I didn't experience any problems before, if you are sure what you are doing - why not.
from anytype-ts.
Oh sorry, you meant pinning dependencies, idk actually, I didn't experience any problems before, if you are sure what you are doing - why not.
I'll retry it later at weekend on (some) new folders with different commands (normal npm install, npm ci, npm install with the electron like in readme) before I start the PR - just to be sure that it breaks without the dependency pinning on a fresh install - will report the results
from anytype-ts.
Oh sorry, you meant pinning dependencies, idk actually, I didn't experience any problems before, if you are sure what you are doing - why not.
I'll retry it later at weekend on (some) new folders with different commands (normal npm install, npm ci, npm install with the electron like in readme) before I start the PR - just to be sure that it breaks without the dependency pinning on a fresh install - will report the results
ok, thank you
from anytype-ts.
Sorry for the late update.
I just checked npm ci
and npm install
and npm install -D
using the latest release tag ... good news on that front - this time I didn't had any of those issues in the first post ... really weird!
I have NO idea how those errors in the first post ( webpack 5.88.2 compiled with 1050 errors in 23526 ms
) came from. 🤷
As for the pinning dependencies, this article sums up the pro's and con's there:
https://the-guild.dev/blog/how-should-you-pin-dependencies-and-why
In case you'd like to have those pinned I'll create for a PR for that.
from anytype-ts.
Related Issues (20)
- Distinction between text and an object
- Emails with TLDs longer than 6 characters are not accepted
- Automatic right to left language support HOT 1
- Collection object conversion HOT 1
- Adding summable numbers
- [Feature Request] Scriptable widgets
- Extract Content to New Page HOT 2
- Useless Scrollbars HOT 2
- Request to Add CMake Script Language Support in Code Blocks HOT 1
- Spell-Checking Menu Has Offset
- Feature Request: Add shortcut to create an object with a backlink to the currently open object. HOT 1
- Homepage set as "Last opened Object" does not go to the "Last opened Object" upon updating to 0.41.0 HOT 7
- Mixed Nested Lists Not Resuming
- Page scrolls up when I press shift-tab in nested list HOT 4
- Apply Filters to Graph
- Not Launching
- Issues Arising from Chinese Language Searches
- Use a stable version as the latest release HOT 1
- [Feature request] reproducible builds HOT 1
- Not able to paste "<some text>"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from anytype-ts.