-
Notifications
You must be signed in to change notification settings - Fork 55
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
Importing server-side module error #21
Comments
I recommend downgrading to 3.0.17 as i think it was with better functionalities. (not sure what happened to transitions). I am personally going to do that. I got 4.0.5 to work by using webpack + babel:
module.exports = {
presets: [
[
require("@babel/preset-env"),
{
targets: {
node: "current",
},
},
],
],
}; |
Yikes looks like Babel isn't transforming those imports. I'll push a fix this afternoon. Thanks for the heads up! |
Should be fixed now. Can you please test once more?
beaver-logger v4 has been stripped back to focus on the thing it does well: batching and dispatching events from the browser to the server. If you'd like to use transitions on your app, please feel free to borrow the code from v3: https://github.com/krakenjs/beaver-logger/blob/a281c8f69863d78c5aff0f5104d69041ec388c93/client/transitions.js -- it should work pretty well outside of the core beaver-logger module. Or if you'd like to expose this as a separate optional module I'd be more than happy for you to use the above code as a starting point. :) |
When I try doing
In my app js file, I get the following import error on start:
I've tried adding Babel 7 to my project, tried various babel config settings to support babel transpilation of imported modules, no luck. My app is fairly simple, so there shouldn't be any weird left-field issues. I'm using Node 8.12 I believe, beaver-logger@4.0.5. Any ideas?
The text was updated successfully, but these errors were encountered: