ZweiEuro
Test using png mocks
When using imports with
*.png
files it will crash denos testing system with a warning:
While I understand the problem, how can i mock away the png and replace it with an identity object or something similar?
In jest i would transform it away (https://stackoverflow.com/questions/46898638/importing-images-breaks-jest-test) but i am not sure how deno would handle this47 replies
deno test on react template
The deno react +vite starter tempalte doesn't run
deno test -A
successfully https://github.com/denoland/react-vite-ts-template1 replies
Import module from gitlab server
Hi!
I want to import an npm module from my private gitlab server, the server and module itself do not require an auth tokenand are publibly accessible.
How do i add it to deno ?
If possible I want to avoid adding my own server to my npmrc and then importing it.
Found this:
https://docs.deno.com/runtime/fundamentals/node/#how-to-use-private-registries-with-deno
is this really necessary ? because the example only specifies 'private' repos, which does not apply to mine, i don't need a token
14 replies
Build a React app with a starter template incorrectly setup
Hi!
After running the setup for the react template https://docs.deno.com/examples/react_tutorial/ there are some errors that VSCode reports.
Mainly that
main_test.ts
for the server can't find packages specified in:
which is weird since this is the started template. Is this an error of my setup or a problem of deno ?1 replies
Intellisense not working for typescript react.
I ran this to create a new Vite React project:
What I did:
But the type sensing was wrong, there also was no
deno.json
so i created one:
But the type sensing is still wrong, for very simple code like
const [count, setCount] = useState<number>(0);
VsCode does not detect count or setCount to be of type number, and it complains that useState has no type argument.7 replies
Start a new Vite React project
Hi!
Should https://docs.deno.com/runtime/tutorials/how_to_with_npm/react/ work out of the box? I am trying to get it to run with vscode but even if it runs there are a lot of small problems with it out of the box:
- svgs are not recognized as valid resources
- the react UMD is missing so everything is recognized as an error
- doesn't generate a deno.json for me at all
- seems in general that a lot of types and intellisense are setup incorrectly ? I have no other plugin active other than dino
What I did:
1 replies