Comments (11)
I suspect this is your problem: https://stackoverflow.com/questions/51860043/javascript-es6-typeerror-class-constructor-client-cannot-be-invoked-without-ne
Have you tried targeting a later version of javascript in your transpilation? Or is there a reason why you need to target es6?
from lexical.
My tsconfig is targeting esnext not es6
from lexical.
Also it builds fine it's just when I use it in another package
from lexical.
My tsconfig is targeting esnext not es6
Ah, I see - I missed the base config you extended.
Also it builds fine it's just when I use it in another package
I'd expect the transpilation to work fine, anyway. You'd see a runtime error (which is what you're seeing, right?).
Do you think you could provide a stack trace? I can't repro this in the playground with the same setup (another thing pointing to an environment/build issue).
from lexical.
@acywatson I've posted a minimal reproduction using code sandbox issue happens there for me, anything that is currently on the GitHub link I sent is that package version that's in the code sandbox
from lexical.
Another thing to note I have tested it locally using storybook and all is fine. All I can guess is that my rollup build command is breaking something but I wouldn't have thought so.
from lexical.
Hmm - one quick test could be to search the built files for "TextNode.call" and see if that's happening anywhere.
from lexical.
Hmm ok I'll try that tomorrow. It would be nice to see a working example of this sort of feature as even their own playground doesn't show this off
from lexical.
@acywatson there is a textnode.call in the cjs built file but only within the extendedTextNode constructor where you would expect it to be.
I cannot find the same thing in the esm version.
from lexical.
Related Issues (20)
- Bug: App breaks while writing into table and Convert into after inserting the table
- Bug: Key Combination Breaks Text Editor Within List Items
- Bug: The selection changes unexpectedly when changing font family (or anything using inline style)
- Bug: codesandbox for simple setup on docs landing page is not found
- Feature: 🤖 LLM search (ChatGPT) in Docs
- Bug: UpdateListener with debounce HOT 3
- Bug: Change text alignment in multiple cells
- Bug: data-gutter not exported in <code/> after export to html HOT 1
- Bug: Deleting selected text node not working on Android (Chrome) HOT 1
- Bug: Header becomes a numbered list HOT 2
- Bug: If editable is false, $setSelection doesn't update the visual highlight of selection in page
- Bug: Indenting a DecoratorNode (ie TweetNode) causes exception and makes editor unresponsive.
- Bug: cursor size does not align with font-size
- Bug: Using AOSP-based keyboards on Android is very broken HOT 1
- Bug: Full table selected after cells copy/paste
- Bug: "HTML -> Lexical" code snippet from the documentation does not work HOT 2
- Bug: Nested Lists are rendered wrongly in Editor HOT 2
- Bug: Inserting a table from external source can lead to Lexical crash HOT 5
- Bug: copy and pasting table cell does not contains individual cell text style
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 lexical.