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
Importing Rust code by doing import {my_fun} from 'my_rust.rs is working fine for me, however, when I try to import a crate I've written via import {my_fun} from './my_crate/src/lib.rs' as seen here the build works however, in the javascript console in Firefox I get the following error:
🐛 bug report
Importing Rust code by doing
import {my_fun} from 'my_rust.rs
is working fine for me, however, when I try to import a crate I've written viaimport {my_fun} from './my_crate/src/lib.rs'
as seen here the build works however, in the javascript console in Firefox I get the following error:TypeError: second argument must be an object
🎛 Configuration (.babelrc, package.json, cli command)
configuration and project visible at https://github.com/jgall/parcel_issue
🤔 Expected Behavior
The function should be imported properly.
😯 Current Behavior
I get an error in the console instead of loading a function from Rust.
💻 Code Sample
I wrote up a quick example that shows the bug (at least on my laptop it reproduces 100% of the time)
https://github.com/jgall/parcel_issue
🌍 Your Environment
The text was updated successfully, but these errors were encountered: