Click here to Skip to main content
15,868,141 members
Please Sign up or sign in to vote.
1.00/5 (1 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

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).
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900