React cli SyntaxError: Unexpected token '<'

#!/usr/bin/env node
'use strict';
const React = require('react');
const {render, Text} = require('ink');

const App = () => {
    return  (
        <Text>Test text</Text>
    )
}

render(<App />);

Код выше, при попытке запустить через node выдается ошибка такая. При этом если где-то оно так, а где-то работает, импорты одинаковые. В самой документации есть примеры такого вида скрипта, но не работает почему-то.

Вот ошибка

E:\Desktop\test\cli.js:8
        <Text>Test text</Text>
        ^

    SyntaxError: Unexpected token '<'
        at Object.compileFunction (node:vm:352:18)
        at wrapSafe (node:internal/modules/cjs/loader:1031:15)
        at Module._compile (node:internal/modules/cjs/loader:1065:27)
        at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
        at Module.load (node:internal/modules/cjs/loader:981:32)
        at Function.Module._load (node:internal/modules/cjs/loader:822:12)
        at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
        at node:internal/main/run_main_module:17:47

Ответы (0 шт):