You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: