Upgrading level to v2
See original GitHub issueHi there, I’m upgrading from 1.7.0
to 2.1.2
at this small project and get the following error:
Error {
message: 'constructor requires a location string argument',
}
LevelDOWN.AbstractLevelDOWN (node_modules/leveldown/node_modules/abstract-leveldown/abstract-leveldown.js:12:11)
new LevelDOWN (node_modules/leveldown/leveldown.js:14:21)
LevelDOWN (node_modules/leveldown/leveldown.js:12:12)
Level (node_modules/level-packager/level-packager.js:13:27)
Object.create (test/helpers/database.js:11:18)
Test.test.beforeEach.t [as fn] (test/validation.js:9:31)
Think because it’s missing the location
parameter, at the following code: leveldb(process.env.LEVELDOWN_DB || require('memdown'));
How would I achieve this in version 2?
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (7 by maintainers)
Top Results From Across the Web
Upgrading - Blox Fruits Wiki - Fandom
Items Needed Upgrading Item Upgrade Buff
5x. Leather 5x. Angel Wings Katana / Cutlass +30% Damage
15x. Leather 10x. Angel Wings Dual Katana +30% Damage
15x....
Read more >BLOX FRUITS HOW TO UPGRADE RACES TO V2 RACES
BLOX FRUITS HOW TO UPGRADE RACES TO V2 RACES. 171K views 2 years ago. DeadPlushiesXD. DeadPlushiesXD. 4.11K subscribers. Subscribe.
Read more >How to upgrade cdk to v2 | Mopey | Blox Fruits Update 17 Part 3
hello!tags (ignore) #bloxfruits #bountyhunting #bloxfruitsbountyhunting #bloxfruitsupdate17 #bloxfruitcombo #doughawakening #Mopey #roblox ...
Read more >HOW TO UPGRADE DARK BLADE "YORU V2" - Roblox
roblox #bloxfruit #rblx IN THIS VIDEO I WILL SHOW YOU HOW TO UPGRADE YOUR YORU DARK BLADE TO V2 !
Read more >Bloxfruits Upgrading All Swords + NEW 2x CODE |PART 1
UPGRADING ALL SWORDS IN FIRST SEA for PART 1 in BLOXFRUITS ROBLOX. ... 100K views 2 months ago #roblox #bloxfruits #onepiece.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you all for your helpful & detailed responses! ❤️ Really like being able to swap out memdown and leveldown, perfect for testing.
If anybody is interested these are the changes I made to update: https://github.com/Siilwyn/cheers-receiver/pull/4/commits/242bd70fab78cc685a325ff981950c8e2cfba6fa
@Siilwyn I see now why it works
level@1.7.0
uselevel-packager@1.2.0
which does:Here
location
corresponds to{ db: memdown }
in your case, which is passed down tolevelup()
which will use that as a backend. Afaict this was not intended, but worked becauselevelup
had this functionality.Now
level-packager
does:Which is more unforgiving, since
location
really has to be a string.