Skip to content

mnist.js does not provide an export named 'default' #8

@miguelh72

Description

@miguelh72

First, thank you for helping people load the MNIST data set!

Now onto replicating the problem, if you download your distribution to a hosted environment and link to mnist.js the following way: (I'm using NodeJS and a statically served folder with express.)

import mnist from './mnist.js';

you will get the following Syntax Error when the browser (Chrome in my case) tries to parse your code.

Uncaught SyntaxError: The requested module './mnist.js' does not provide an export named 'default'

I was able to get past this Syntax Error by adding "export default" to the first line of mnist.js:

export default (function e(t,n,r){function...

I hope this helps you make edits that will help others avoid this troubleshooting.

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