D
Deno

help

I cant import the Zustand module from deno.

PPollo8/4/2023
I leave a photo of what it shows when I put the url to the import map. And try to cache the module.
PPollo8/4/2023
I also tryed use npm: but i cant import the vanilla relative path.
SSyrupThinker8/4/2023
If you want to import the index.ts with plain zustand the import map should point to the https://deno.land/x/zustand@v4.4.0/src/index.ts file. For the vanilla import you also need to point to the actual file, so
import {} from "zustand/src/vanilla.ts";
import {} from "zustand/src/vanilla.ts";
PPollo8/4/2023
Nice Thanks, i guess is full fixed. let me test it a bit to close this 😄
PPollo8/4/2023
PPollo8/4/2023
I got this ^^
PPollo8/4/2023
PPollo8/4/2023
If i take off the first line. no more error. But i would like to use the useStore What libraries do you guys use with preact to handle stores?
SSyrupThinker8/4/2023
Hmm ok, that file is not a proper ES module. Let's go with npm, does npm:zustand@4.4 and npm:zustand@4.4/vanilla work for you, or how does it fail?
What libraries do you guys use with preact to handle stores?
Can't help with that, gotta hope somebody else sees this or just ask in #fresh I guess 🤷‍♂️
PPollo8/4/2023
let me test it.. and about the libraries, ill go ask in fresh 🙂 Im just trying things nothing "real" xd
PPollo8/4/2023
I got this.
PPollo8/4/2023
Is just a hook, so no problem without using it. I can use zustand without that Thanks for the help, i have to close this thread or something ???
SSyrupThinker8/4/2023
No problem, you don't have to, but you can add the "Solved" tag to the thread.
PPollo8/4/2023
Ready 🙂

Looking for more? Join the community!

Recommended Posts
Sub hosting SAAS appWhat technologies are behind the Deno Deploy feature, where you can set up your own domain name? I What should my entry point be on Deno Deploy?Only ever used firebase before. I'm getting a 502 bad gateway error when deploying my website.tsParticles & DenoHi, I’m working on a personal project with Deno & Lume. I’m trying to use tsParticles with preact. Looking for a library to pretty print </br>, <a>, etc tagsAs that title says, I'm looking for a library that can pretty print a string containing the mentioneImporting `puppeteer-cluster` from esm.sh causes `does not provide an export named 'default'` errorWhen importing `https://esm.sh/puppeteer-cluster@0.23.0` I get the following error: ``` error: UncauDeno linting not workingHello everyone, I enabled deno for a subpath in my project (`./supabase`) but unfortunately I'm not deno_pythonI'm trying to use Python with Deno with https://deno.land/x/python@0.2.7 What should I do to enable Deno VS Code plugin too aggressive in auto-completionI'm new to Deno and learning through some tutorials. I'm using VS Code and have the Deno plugin enabhow to exit all async command in deno task?consider this code ```json { "tasks": { "dev-server": "deno run --watch --allow-read --allow-nnode-pre-gyp install failing inside docker containerI'm building something that depends on a library with a native component (pulsar-client) and it doesSet a cookie in GET and retrieve in POSTbeen tryinig to do this for a couple hours now. Basically I want a way to return the user to the prWhat are newUserProps()I'm reading saaskit source, and I don't understand the point of `newUserProps()`. Why not just definRun a detached child process in DenoI'm looking at running a detached child process using Deno. Specifically I want run something like adeno info returns module not found``` deno info https://raw.githubusercontent.com/Murcul/norm/v1.3.0/src/mod.ts error: module could nocan't scrub video```<div className={"flex flex-col text-primary w-full lg:w-1/2 justify-center"}> <video classNamProper usage of `Deno.HttpClient`Hi! I'm creating an application which allows the internal use of HTTP proxies for certain tasks. In What's a good way to write tests for a script which does a bunch filesystem wrangling?As per the title - I have a script which, given a folder, does a bunch of moving and renaming. I'd lHow to access request body in Deno?Thank you.Syntax error when getting prop children Element but compilesIs this error important? How can I fix it? Should I fix it?Generate jUnit XML file from Deno TestsHey is it possible that the Deno Test suite generates a jUnit XML about the Test? So that I can disp