cappuccino / cappuccino

Web Application Framework in JavaScript and Objective-J
https://cappuccino.dev/
GNU Lesser General Public License v2.1
2.2k stars 333 forks source link

Node package missing lib #3067

Closed dboris closed 1 month ago

dboris commented 1 month ago

After installing the node package @objj/cappuccino, I get an error running capp:

npx capp --help
/usr/local/lib/node_modules/@objj/cappuccino/node_modules/@objj/runtime/lib/objective-j.js:4099
                        throw new Error("Could not load file at " + aURL + (compilingFileUrl ? " when compiling " + compilingFileUrl : "") + "\nwith includeURLs: " + StaticResource.includeURLs());
                        ^

Error: Could not load file at file:/usr/local/lib/node_modules/@objj/cappuccino/dist/cappuccino/lib/capp/main.j
(...)

Looking into the node package, under dist/cappuccino there is only a bin folder: https://www.npmjs.com/package/@objj/cappuccino?activeTab=code Shouldn't there be lib as well?

cappbot commented 1 month ago

Milestone: Someday. Label: #new. What's next? A reviewer should examine this issue.

mrcarlberg commented 1 month ago

Yes, there is something wrong when installing using npm. I get the same error as you do. When I install from source it works for me. It might be, as you say, the lib folder is missing....

mrcarlberg commented 1 month ago

Thanks for finding this problem. I have published a new version (1.3.1) of the Node package @objj/cappuccino. Can you please test it too so it solves your problem.

dboris commented 1 month ago

Seems to work. Thanks.

mrcarlberg commented 1 month ago

Great!