Skip to content
New issue

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

File-Import in 4.1.1 not working #763

Open
on3iro opened this issue Nov 9, 2020 · 0 comments
Open

File-Import in 4.1.1 not working #763

on3iro opened this issue Nov 9, 2020 · 0 comments

Comments

@on3iro
Copy link

on3iro commented Nov 9, 2020

Hey,

I just tried to start a new mdx-deck project with the latest version. As long as I keep everything inside a single deck file, it seems to work correctly. However as soon as I split my deck into multiple files, I get the following error:

Uncaught TypeError: Cannot read property 'pathname' of undefined
    at deck.js:41
    at commitHookEffectListMount (react-dom.development.js:19732)
    at commitPassiveHookEffects (react-dom.development.js:19770)
    at HTMLUnknownElement.callCallback (react-dom.development.js:189)
    at Object.invokeGuardedCallbackDev (react-dom.development.js:238)
    at invokeGuardedCallback (react-dom.development.js:293)
    at flushPassiveEffectsImpl (react-dom.development.js:22854)
    at unstable_runWithPriority (scheduler.development.js:653)
    at runWithPriority$1 (react-dom.development.js:11040)
    at flushPassiveEffects (react-dom.development.js:22821)
    at react-dom.development.js:22700
    at workLoop (scheduler.development.js:597)
    at flushWork (scheduler.development.js:552)
    at MessagePort.performWorkUntilDeadline (scheduler.development.js:164)

If I use the same folder structure with a CodeSurfer-Project (so a project kickstarted with their scaffolding mechanism) everything seems to work fine (except from a few major styling issues). Though CodeSurfer still uses v3.x.x under the hood.

Here's a screenshot of my setup (project structure as well as both files):

Screenshot 2020-11-09 at 08 54 16

Note: I tested both with the latest Chrome as well as the latest FireFox DevEdition.

As it stands I am unable to get a usable mdx-deck 4.x.x-setup running. (my presentations are quite large, so keeping everything inside one file is a no-go).

Any ideas?

Thanks in advance

Theo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant