Unable to run create-ink-app --typescript project
See original GitHub issueFollowing the getting started guide:
user@DESKTOP-CFOTQL1:~/projects/foo$ npx create-ink-app --typescript
user@DESKTOP-CFOTQL1:~/projects/foo$ npm run start
> foo@0.0.0 start /home/user/projects/foo
> npm run build && dist/cli.js
> foo@0.0.0 build /home/user/projects/foo
> tsc
(node:19237) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
(Use `node --trace-warnings ...` to show where the warning was created)
/home/user/projects/foo/dist/cli.js:2
import React from 'react';
^^^^^^
SyntaxError: Cannot use import statement outside a module
at wrapSafe (internal/modules/cjs/loader.js:979:16)
at Module._compile (internal/modules/cjs/loader.js:1027:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! foo@0.0.0 start: `npm run build && dist/cli.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the foo@0.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/user/.npm/_logs/2021-05-04T21_25_50_771Z-debug.log
Using node version 14.16.1 lts
Issue Analytics
- State:
- Created 2 years ago
- Reactions:6
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Unable to create React typescript project - Stack Overflow
Try updating your local create-react-app version to >=2.1 ... Then create your react app with typescript using below command.
Read more >Can't Scaffold TypeScript Project Anymore... #12443 - GitHub
When I run the command: npx create-react-app cra-example-app --template typescript it ends with this strange message and creates some ...
Read more >Tutorial: Create a Node.js and React app in Visual Studio
Learn how to create a Node.js web application project from a Visual ... and TypeScript compiler options; Transpile the JSX; Run the app...
Read more >create-react-app: command not found (React) error [Solved]
Use npx to solve the error "create-react-app: command not found", e.g. npx create-react-app my-app or install the package globally by running npm install...
Read more >Create React App and TypeScript: A Quick How-To | Built In
Let's take a look at creating a new React app that uses TypeScript from the jump, and convert an existing project from JavaScript...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Getting similar issues but about
I’ve made it known there as well meow:172
meow
Anything I can do to help move this along?