Skip to content
This repository has been archived by the owner on Dec 26, 2018. It is now read-only.

babel-node #18

Closed
dunkfordyce opened this issue Dec 6, 2018 · 1 comment
Closed

babel-node #18

dunkfordyce opened this issue Dec 6, 2018 · 1 comment

Comments

@dunkfordyce
Copy link

Iv used vue-cli 3 to set up a project and I want to run some scripts manually with babel-node. My babel config is unchanged from the defaults vue-cli set. When I run my script it doesnt seem to work as expected:

PS D:\Projects\kuya-mc2> npx babel-node .\src\lib\data.js
npx: installed 1 in 1.565s
Path must be a string. Received undefined
D:\Projects\kuya-mc2\node_modules\@babel\node\bin\babel-node.js
D:\Projects\kuya-mc2\src\lib\data.js:1
(function (exports, require, module, __filename, __dirname) { import "core-js/modules/es6.array.iterator";
                                                              ^^^^^^

Any hints?

@Justineo
Copy link
Member

Justineo commented Dec 6, 2018

You are manually running babel-node without anything related to Vue. I searched a little bit for you and it seems to be an issue of npx.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants