We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I try to use ink library from npm so i run npm install ink react and deno run --compat --unstable --allow-net --allow-read script.jsx
npm install ink react
deno run --compat --unstable --allow-net --allow-read script.jsx
script.jsx
import React, {useState, useEffect} from 'react'; import {render, Text} from 'ink'; const Counter = () => { const [counter, setCounter] = useState(0); useEffect(() => { const timer = setInterval(() => { setCounter(previousCounter => previousCounter + 1); }, 100); return () => { clearInterval(timer); }; }, []); return <Text color="green">{counter} tests passed</Text>; }; render(<Counter />);
base on what i can understand from compatibility mode it must have no issues..., maybe i miss something ... i don't know here is output
The text was updated successfully, but these errors were encountered:
This is most likely related to #12648; react is distributed as a CJS module and interoperability between ESM and CJS is still a bit lacking in Deno.
react
Sorry, something went wrong.
Okay, we got a way forward to providing this integration. Currently blocked by denoland/deno_graph#97
bartlomieju
Successfully merging a pull request may close this issue.
I try to use ink library from npm so i run
npm install ink react
anddeno run --compat --unstable --allow-net --allow-read script.jsx
script.jsx
base on what i can understand from compatibility mode it must have no issues..., maybe i miss something ... i don't know here is output
The text was updated successfully, but these errors were encountered: