Would this be a good place to ask why node crashes...
# orm-help
a
Would this be a good place to ask why node crashes when using
import
? I am running node 10 and trying to follow the "zero to graphql" tutorial from like 2016 or something
n
import as in graphql-import? Yes. 🙂
I am trying to import from
./schema.js
n
ok, this is not
graphql-import
then 😄 this is a pure JavaScipt question 🙂 What is the error you receive? Have you tried using require?
a
I have, and require works. Just curious as to why
import
isn't 🙂
m
You just need to add Babel to your project's dependencies. Then add a babelrc file at the root of your project
Copy code
{
  "presets": [
    "env"
  ]
}
That's all you need in your Babel rc file