Skip to content

Support for modules like Quickie #55

Description

@hayksaakian

try using https://github.com/vrld/Quickie

I think the problem might have to do with how love2d/lua does "require"
Quickie doesn't have a quickie.lua file inside it's folder, but it works as expected when i run it locally with love from the terminal

in my case I did

cd examples/touch/
git clone https://github.com/vrld/Quickie.git

and I added:

gui = require("Quickie") 

to the top of examples/touch/main.lua

then

grunt

and load

http://0.0.0.0:8000/examples/touch/

and open up your console

Failed to load resource: the server responded with a status of 404 (Not Found) http://0.0.0.0:8000/examples/touch/conf.lua.json
Failed to load resource: the server responded with a status of 404 (Not Found) http://0.0.0.0:8000/examples/touch/Quickie.lua.json
Failed to load resource: the server responded with a status of 404 (Not Found) http://0.0.0.0:8000/examples/touch/Quickie.json
Failed to load resource: the server responded with a status of 404 (Not Found) http://0.0.0.0:8000/examples/Quickie.lua.json
Failed to load resource: the server responded with a status of 404 (Not Found) http://0.0.0.0:8000/examples/Quickie.json
Failed to load resource: the server responded with a status of 404 (Not Found) http://0.0.0.0:8000/examples/modules/Quickie.lua.json
Failed to load resource: the server responded with a status of 404 (Not Found) http://0.0.0.0:8000/examples/modules/Quickie.json
Failed to load resource: the server responded with a status of 404 (Not Found) http://0.0.0.0:8000/examples/modules/Quickie/Quickie.lua.json
Failed to load resource: the server responded with a status of 404 (Not Found) http://0.0.0.0:8000/examples/modules/Quickie/index.lua.json
Uncaught Moonshine run-time error: module 'Quickie' not found:
no field package.preload['Quickie']
no file 'touch/Quickie.lua.json'
no file 'touch/Quickie.json'
no file 'Quickie.lua.json'
no file 'Quickie.json'
no file 'modules/Quickie.lua.json'
no file 'modules/Quickie.json'
no file 'modules/Quickie/Quickie.lua.json'
no file 'modules/Quickie/index.lua.json'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions