Error that says I need a library I deleted along with the require code

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
ThatBoiNavy
Prole
Posts: 15
Joined: Fri Jul 05, 2024 6:39 pm

Error that says I need a library I deleted along with the require code

Post by ThatBoiNavy »

I am switching from the library windfield to breezefield and the error says:

Error
main.lua:5: module "libraries/windfield' not found:
no field package.preloadI'libraries/windfield'] no libraries/windfield' in LOVE game directories. no file 'libraries/windfield' in LOVE paths. no file "/libraries/windfield.lua'
no file 'Vusr/local/share/luajit-2.1/libraries/windfield.lua' no file 'Yusr/local/share/lua/5.1/libraries/windfield.lua' no file '/usr/local/share/lua/5.1/libraries/windfield/init.lua
no file '/libraries/windfield.so'
no file '/usr/local/lib/lua/5.1/libraries/windfield.so' no file 'Yusr/local/lib/lua/5.1/loadall.so'
Traceback
[love "callbacks.lua"]:228: in function 'handler'
IC]: in function 'require' main.lua: 5: in function "load'
[love "callbacks.lua"]:136: in function <[love "callbacks.lua"]:135>
[C]: in function 'xpcall'
IC]: in function 'xpcall'
Press CtrI+C or tap to copy this error

Im really not sure why as there is nothing in ny code anymore relates to windfield.
User avatar
slime
Solid Snayke
Posts: 3166
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Error that says I need a library I deleted along with the require code

Post by slime »

The error says line 5 of your main.lua is trying to load windfield.
ThatBoiNavy
Prole
Posts: 15
Joined: Fri Jul 05, 2024 6:39 pm

Re: Error that says I need a library I deleted along with the require code

Post by ThatBoiNavy »

slime wrote: Fri Jul 26, 2024 9:14 pm The error says line 5 of your main.lua is trying to load windfield.
My line 5 is -- Declare open source code above this line /\
User avatar
slime
Solid Snayke
Posts: 3166
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Error that says I need a library I deleted along with the require code

Post by slime »

It sounds like you didn't save your file, maybe? Or you're running a different main.lua than you're editing?
ThatBoiNavy
Prole
Posts: 15
Joined: Fri Jul 05, 2024 6:39 pm

Re: Error that says I need a library I deleted along with the require code

Post by ThatBoiNavy »

slime wrote: Sat Jul 27, 2024 3:55 am It sounds like you didn't save your file, maybe? Or you're running a different main.lua than you're editing?
This worked but now im have the opposite issue... I added a new file and hooked it up to the code and put it in the correct spot. I have saved several times but no luck.
dpkgluci
Prole
Posts: 8
Joined: Wed Jul 31, 2024 10:05 pm

Re: Error that says I need a library I deleted along with the require code

Post by dpkgluci »

can you post your main.lua?
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 10 guests