Comments (8)
Removed ^
from "@tldraw/tldraw": "2.0.0-alpha.17"
to use an absolute version so that it doesn't uses canary release..worked for me.
from draw-a-ui.
Hey, tldraw author here. We'll check on whether the canary has a problem with its CSS exports. The alpha should work here though for sure.
from draw-a-ui.
What package manager are you using?
Could you delete node_modules, run npm ci
, and then npm run dev
?
I just run this on a clean machine and it worked
from draw-a-ui.
I tried that, same error.
I am using [email protected] and [email protected]
from draw-a-ui.
I tried that, same error.
I am using [email protected] and [email protected]
the same error
while use yarn (version: 1.22.19)
![image](https://private-user-images.githubusercontent.com/30768615/282214398-a9b5b211-60cd-478c-b2f6-aaa5b11a1274.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTc3MDQ4MTUsIm5iZiI6MTcxNzcwNDUxNSwicGF0aCI6Ii8zMDc2ODYxNS8yODIyMTQzOTgtYTliNWIyMTEtNjBjZC00NzhjLWIyZjYtYWFhNWIxMWExMjc0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjA2VDIwMDgzNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU3MjhlY2Y0ZjRhOGE4YWUyMzhjNWRiOGE0ZjkwNTQzOTAyMmMxZjVlZmFmNDVlMTgyM2Y4Y2UwY2M4YTAxNTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.15UEnVKm24Lk-iZ5c0ozQyEhsdS20GGZsKnc3sEqhnk)
while use npm (version: 9.8.1)
![image](https://private-user-images.githubusercontent.com/30768615/282215452-b7bc1320-5a89-4123-acf2-e3014fac6a16.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTc3MDQ4MTUsIm5iZiI6MTcxNzcwNDUxNSwicGF0aCI6Ii8zMDc2ODYxNS8yODIyMTU0NTItYjdiYzEzMjAtNWE4OS00MTIzLWFjZjItZTMwMTRmYWM2YTE2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjA2VDIwMDgzNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWYyMWNmZDBmNDU5NTNhMGUzMTlmN2RiZDVhYjAyYzEyYTE2NWUyNmJiY2RkYWJiOTU1NmEwZTNiMDJkM2Y5MDQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.g7EJmHDbP3PmS8wepNm8Hkwl1rjg6AILfgbQeO_JQAM)
maybe you use yarn to install ?
from draw-a-ui.
There seems to be a code difference between the alpha
version and the canary
version (at least the old) in the @tldraw/tldraw
release.
It is possible that the installed package version has been swapped to canary
.
Checking the package.json
and node_modules
may help.
For example, if I followed the procedure pnpm install
followed by pnpm update
,
I confirmed that 2.0.0-canary.ffda4cfb
is installed and this event occurs.
One way is to remove all node_modules
, clean the source, and then run npm install
. I have had no problems with pnpm
too.
In this case it works fine for me.
Hope this helps in resolving this. 😃
from draw-a-ui.
still does not work, still getting the same error even after your suggestion :/.... I am not sure what to do here
from draw-a-ui.
That's odd because the Docker container for your Node version and npm version works in my environment. 😟
Does node_modules/@tldraw/tldraw/tldraw.css
exist in your execution workspace?
Is the version
of node_modules/@tldraw/tldraw/package.json
2.0.0-alpha.17
?
It is not certain, but npm cache verify
may solve the problem.
from draw-a-ui.
Related Issues (20)
- /tldraw.css is not exported from package /home/andy/dev/draw-a-ui/node_modules/@tldraw/tldraw (see exports field in /home/andy/dev/draw-a-ui/node_modules/@tldraw/tldraw/package.json) HOT 1
- Error from open ai: [object Object]
- .env not working? Undefined openai key and base? HOT 1
- VercelPostgresError: VercelPostgresError - 'missing_connection_string' HOT 2
- ERROR: relation "links" does not exist
- 我应该如何将它安装在服务器,让我打开网页使用? HOT 2
- Draw-a-ui
- editor.getSelectedShapes is not a function HOT 1
- fetch failed
- Working without OPENAI_API_KEY HOT 1
- it show alert
- Feature Ideas
- Draw-to-ai
- Attempted import error
- yarn build error !
- TypeError: editor.getInstanceState is not a function
- Error from open ai: "slow down"
- local model support
- Add Framework Options
- Add dark mode HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from draw-a-ui.