Closed henrydaehnke closed 7 years ago
@henrydaehnke Because this works from the command line, I suggest you make the following change in VS 2017:
$(PATH)
entry up to the 2nd item in the list@scottaddie Nice! That worked. I hadn't thought of fiddling around with the $(PATH)
order in Visual Studio. The only slightly odd thing is that the Implement me. Unknown stdin file type!
error is still displayed, but everything works. See the error details below when trying to run the start
script created by create-react-app
.
I am going to close this issue. Thanks again!
Error example (again, still works):
C:\project path\project folder> cmd.exe /c yarn run start Implement me. Unknown stdin file type! yarn run v0.24.6 $ set HTTPS=true&&react-scripts-ts start Starting the development server... Warning: The 'no-use-before-declare' rule requires type checking ts-loader: Using typescript@2.3.3 and C:\project path\project folder\tsconfig.json Compiled successfully! You can now view project-name.web in the browser. https://localhost:3000/ Note that the development build is not optimized. To create a production build, use yarn run build.
Installed product versions
Description
Get "Unknown stdin file type!" when use NpmTaskRunner to run package.json scripts created by create-react-app.
Steps to recreate
$ create-react-app my-app --scripts-version=react-scripts-ts
create-react-app
output to the blank node.js project.Current behavior
Exception is thrown when attempt to run package.json scripts from NpmTaskRunner using
yarn
. Here's the error:Expected behavior
Should run without throwing exception. This does work from a command prompt.