Click here to Skip to main content
14,267,679 members
Rate this:
Please Sign up or sign in to vote.
See more:
When am set path this type error generated

path must be a string. received undefined babel

Hoe to set React Js IN/Out file

am using this code in cmd

E:\ABC>npx babel src/abc.js --out-file public/scripts/aa.js --preset=env,react

What I have tried:

path must be a string. received undefined babel
Posted
Updated 18-Jul-18 3:42am
v2

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

See "Path must be a string. Received undefined" · Issue #144 · zkat/npx · GitHub[^]:
Quote:
This should have been fixed with npm@5.8.0 (if using the bundled npx) and npx@10 (if you're using a standalone npx install).
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100