haunted icon indicating copy to clipboard operation
haunted copied to clipboard

js extension not added to lib/*.js

Open atoy40 opened this issue 4 years ago • 1 comments

The current version does not have the .js added to import statments in lib/*.js compiled files this is because the TS compiler return an error :

node_modules/.bin/tsc
src/use-context.ts:60:18 - error TS2774: This condition will always return true since the function is always defined. Did you mean to call it instead?

60     this.value = unsubscribe ? value : Context.defaultValue;
                    ~~~~~~~~~~~


Found 1 error.

So the next command in the makefile (sed) is not called. I've fixed this error and then sed has been call successfully.

Anthony.

atoy40 avatar Sep 23 '20 08:09 atoy40

Can you send a PR?

matthewp avatar Oct 09 '20 01:10 matthewp