meetalva / alva

Create living prototypes with code components.
https://meetalva.io
MIT License
3.74k stars 224 forks source link

No external library will connect to Alva Canary #869

Open ElfLoftPigeons opened 3 years ago

ElfLoftPigeons commented 3 years ago

Hey there, I just encountered the following error with Alva:

ENOENT: no such file or directory, open 'C:\Users\wulfy\AppData\Local\Temp\alva\packages\@ui-kitten\template-ts@5.1.1\node_modules\@ui-kitten\template-ts\index.d.ts'
Stack Trace ``` Error: ENOENT: no such file or directory, open 'C:\Users\wulfy\AppData\Local\Temp\alva\packages\@ui-kitten\template-ts@5.1.1\node_modules\@ui-kitten\template-ts\index.d.ts' at Object.openSync (fs.js:436:3) at Object.module.(anonymous function) [as openSync] (ELECTRON_ASAR.js:160:31) at Object.readFileSync (fs.js:341:35) at Object.fs.readFileSync (ELECTRON_ASAR.js:580:40) at Function.module.exports.precinct.paperwork (C:\Program Files\Alva Canary\resources\app.asar\index.js:73486:20) at getImportsFromPath (C:\Program Files\Alva Canary\resources\app.asar\index.js:206320:10) at findPatternCandidates (C:\Program Files\Alva Canary\resources\app.asar\index.js:206294:30) at analyzePatterns (C:\Program Files\Alva Canary\resources\app.asar\index.js:206160:37) at Object.analyze (C:\Program Files\Alva Canary\resources\app.asar\index.js:206113:32) ```

This has happened with every library I have tried to install, whether through the npm installer or by local package.json file. ui-kitten I tried to install by npm. Others I have tried and have failed:

ant-design-mobile argon-design-system-react-master belle chakra-ui galio grommet primereact react-bootstrap rsuite shards-react theme-ui

For instance, when trying to upload shards-react with local upload by package.json, I get the same problem. Every UI I've tried has been deemed incompatible. Am I doing something wrong? Here is the error report for shards-react:

ENOENT: no such file or directory, open 'C:\Users\wulfy\Documents\GitHub\shards-react\dist\shards-react.common.d.ts'


<details><summary>Stack Trace</summary>

Error: ENOENT: no such file or directory, open 'C:\Users\wulfy\Documents\GitHub\shards-react\dist\shards-react.common.d.ts' at Object.openSync (fs.js:436:3) at Object.module.(anonymous function) [as openSync] (ELECTRON_ASAR.js:160:31) at Object.readFileSync (fs.js:341:35) at Object.fs.readFileSync (ELECTRON_ASAR.js:580:40) at Function.module.exports.precinct.paperwork (C:\Program Files\Alva Canary\resources\app.asar\index.js:73486:20) at getImportsFromPath (C:\Program Files\Alva Canary\resources\app.asar\index.js:206320:10) at findPatternCandidates (C:\Program Files\Alva Canary\resources\app.asar\index.js:206294:30) at analyzePatterns (C:\Program Files\Alva Canary\resources\app.asar\index.js:206160:37) at Object.analyze (C:\Program Files\Alva Canary\resources\app.asar\index.js:206113:32)



</details>

Let me know if there is a fix, please? I can't figure out what's going on. I also noticed that on the second loading of the Alva app to try again the pre-included libraries I had downloaded the first time had not remained installed and I had to add them again. Not sure if that's related.