funkia/list

little bug

lesar opened this issue · 4 comments

lesar commented

I think you have exchange row 18 with 19 in:
make-proxies
so there is a comma problem in package.json

I have a strange warning too

WARNING in ./node_modules/list/dist/es/index.js
(Emitted value instead of an instance of Error) Cannot find source file '../../src/index.ts': Error:
Can't resolve '../../src/index.ts' in '/functionalHyperscriptTodoList/node_modules/list/dist/es'

regards

Thank you for reporting the issue @lesar. It seems that you are indeed correct that I've borked the JSON 😭

I've fixed the comma problem and released it as 2.0.10. Please see if that also fixes the other issue? 🤞

lesar commented

No the problem is still here.
I have publish a first release functional todo list
If you do the same stuff:
clone the repository,

npm install,  
npm run start  

then see at http://localhost:8080/index.html
you can see my little example.

If you see the warning, seams List is searching my index.ts on ../../src/index.ts but this file is on ../../../../src/index.ts

I hope that is not my stupid conf. error

regards

Thanks for the steps for reproducing the issue. I was able to see the error you described.

I think I've found the issue. The files generated by TypeScript included source maps and these source maps where included in the npm package. The sources themselves, however, was not included. This caused the browser to look for sources that didn't exist.

List v2.0.11 should fix the issues. I've tried it in your repository and it seemed to do the trick 😄

lesar commented

I have update and all work fine.
No more warning.
Thank Paldepind