Midwest Dev Chat

MidwestDevChat.com

  • The newest 15 messages in the super-cool #python channel.

  • 09/16 20:07:27 Lady: This is what is inside my app.js
  • 09/16 20:07:55 Calandra: you can get rid of the import line
  • 09/16 20:08:39 Calandra: depends on what version of node you are running - but you may need to transpile the code with babel before you can use `import`
  • 09/16 20:09:36 Nada: I'm surprised that node doesn't support ES6 imports outta the box, yet.
  • 09/16 20:09:42 Lady: what is babel? and how can I check which version of node I am using?
  • 09/16 20:09:50 Calandra: I think it does - it depends on what version of node
  • 09/16 20:09:58 Calandra: run `node -v` at the shell
  • 09/16 20:11:14 Lady: v8.12.0
  • 09/16 20:11:25 Nada: This SO might help @Lady https://stackoverflow.com/a/39436580/119041
  • 09/16 20:12:15 Calandra: you're already requiring the packages on line 2 and 3 @Lady - you don't actually need the import
  • 09/16 20:12:35 Calandra: but yes, looks like that SO answer should get you there if you still want to use `import`
  • 09/16 20:14:04 Lady: I took this from the example code in the documentation for pandas-js. When I try to run this, I still get an error:
  • 09/16 20:14:09 Lady:
  • 09/16 20:27:41 Lady: npm install --save-dev babel-core This fixed it for me
  • 09/17 14:35:19 Ivette: so much <#C02GR7W3E|javascript> in <#C02GUKAB0|python> slightly_smiling_face
  • *Usernames have been changed to protect the innocent.
We're currently 1103 members strong. Join us!
Request Invite

Check out all the cool channels!

Join the conversation!