How to use Lexcical in vanilla browser HTML/JS without npm/other package managers? #5367
Unanswered
vadimkantorov
asked this question in
Q&A
Replies: 1 comment
-
Also looking for a way to run a complete rich text example pure js |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
https://lexical.dev/docs/getting-started/quick-start does not show a complete example of HTML/JS
How should I plug/use lexical without having to use npm/react/packaging/etc? Is it possible to just download a tarball from https://github.com/facebook/lexical/releases and then somehow plug it as
<script type="module">
in HTML?I don't have background in web-dev and just looking to try something simple with Lexical for my personal use (without first having to grok npm/amd/esm packaging ecosystem). I saw #1707 and #1845, but still got no understanding of how to start using Lexical in vanilla set-up without any package managers.
It appears that the releases such as https://github.com/facebook/lexical/releases/tag/v0.12.5 only contain TypeScript code which is not ready for consumption by browser without preprocessing, and there are no compiled-to-javascript releases published on GitHub :(
The following
file://my_path/index.html
does not work in Chrome:Error:
Also, for some reason, an error is showing in Lexical.js versioned as 0.3.13
For now, I can't get
npm
working aftersudo apt-get install npm
, which gives me[Npm install cannot find module 'semver']
and then issues withnpm ERR! request to https://registry.npmjs.org/lexical failed, reason: Hostname/IP does not match certificate's altnames:
. It appears that webdev packaging story is kind of wary of outsiders and it not "just works"Thanks a lot :)
Beta Was this translation helpful? Give feedback.
All reactions