xterm.js icon indicating copy to clipboard operation
xterm.js copied to clipboard

New Version Parse failed

Open itisyxfan opened this issue 2 years ago • 0 comments

This is normal when using an older version of xterm. Just like this:

yarn add xterm
import { Terminal } from 'xterm';

But the new version of xterm fails to parse. Just like this:

yarn add @xterm/xterm
 import { Terminal } from '@xterm/xterm';

The error message is as follows:

 error  in ./node_modules/@xterm/xterm/lib/xterm.js
Module parse failed: Unexpected token (1:4232)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
(Source code omitted for this binary file)

Please help me, it would be much appreciated

itisyxfan avatar Oct 30 '24 06:10 itisyxfan