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

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

Open
miguelh72 opened this issue Aug 11, 2019 · 0 comments
Open

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

miguelh72 opened this issue Aug 11, 2019 · 0 comments

Comments

@miguelh72
Copy link

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.

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