Skip to content

File-Import in 4.1.1 not working #763

@on3iro

Description

@on3iro

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions