Replies: 2 comments
-
|
What do your Specifically, what dependencies do you have listed in Have you made any changes to the |
Beta Was this translation helpful? Give feedback.
-
|
@nathanwhit |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to add deno inside a react typescript monorepo. The directory roughly looks like this:
With this as root
package.jsoncontents:{ "workspaces": [ "apps/*" ] }This is
apps/deno-react/deno.jsoncontents, generated usingdeno init --npm vite-extra(repository):{ "nodeModulesDir": "none", "tasks": { "dev": "deno run -A --node-modules-dir npm:vite", "build": "deno run -A --node-modules-dir npm:vite build", "preview": "deno run -A --node-modules-dir npm:vite preview", "serve": "deno run --allow-net --allow-read jsr:@std/http@1/file-server dist/" }, "compilerOptions": { "lib": ["ES2020", "DOM", "DOM.Iterable"], "jsx": "react-jsx", "jsxImportSource": "react", "jsxImportSourceTypes": "@types/react" }, "imports": { "@deno/vite-plugin": "npm:@deno/vite-plugin@^1.0.0", "@types/react": "npm:@types/react@^18.3.11", "@types/react-dom": "npm:@types/react-dom@^18.3.1", "@vitejs/plugin-react": "npm:@vitejs/plugin-react@^4.3.3", "react": "npm:react@^18.3.1", "react-dom": "npm:react-dom@^18.3.1", "vite": "npm:vite@^5.4.9" } }Without doing
npm installin the root project directory,deno task devruns just fine. But after doingnpm install, I got this error:It'd work again after removing
node_modulesdirectory on root project. I've also played aroundnodeModulesDirwith no success.Beta Was this translation helpful? Give feedback.
All reactions