Git Product home page Git Product logo

deno-merch's Issues

context error in cart

Tried running this locally and hit this error:

   An error occured during route handling or page rendering. TypeError: Cannot read properties of undefined (reading 'context')
    at j (deno/hooks.js:2:1028)
    at br ([email protected]/X-YS9yZWFjdDpwcmVhY3QvY29tcGF0CmUvcHJlYWN0L2NvbXBhdA/deno/swr.js:2:6259)
    at useCart (utils/data.ts:102:10)
    at Object.Cart (islands/Cart.tsx:47:27)

Similar issue on official deno merch, solution is changing the import_map.json line 13 to

"swr": "https://esm.sh/v98/[email protected]?alias=react:preact/compat&external=preact/compat"

on a side note, if anyone want to change the port, add port to the main.ts start funcion. i.e

await start(manifest, { render,  port: 3000 });

Syntax error in twind.js

Hi there,
Thanks for this repo...
when I follow your instructions and run "deno task start" in a gitpod container, I've got the following error:
error: Uncaught (in promise) SyntaxError: The requested module '/v99/[email protected]/deno/twind.js' does not provide an export named 'directive'
await import(entrypoint);
^
at async dev (https://deno.land/x/[email protected]/src/dev/mod.ts:163:3)
at async file:///workspace/deno-merch/dev.ts:6:1
Watcher Process finished. Restarting on file change...
Download โ ‡ https://deno.land/x/[email protected]/mod.ts

Do you know what I'm doing wrong?
thanks in advance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.