Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can't import from typescript #9

Open
jimbuho opened this issue Dec 24, 2021 · 4 comments
Open

I can't import from typescript #9

jimbuho opened this issue Dec 24, 2021 · 4 comments

Comments

@jimbuho
Copy link

jimbuho commented Dec 24, 2021

Using the module import at this way:
const windows1252 = require('windows-1252');

and at this way:
import * as windows1252 from 'windows-1252';

I have this error:
node_modules/windows-1252/windows-1252.mjs:284
export const decode = (input, options) => {
^^^^^^

SyntaxError: Unexpected token 'export'
@mathiasbynens
Copy link
Owner

Which version of Node.js and npm are you using?

@jimbuho
Copy link
Author

jimbuho commented Dec 24, 2021

Hello Mathias: node 12.18.0, npm 6.14.4

@el3um4s
Copy link

el3um4s commented Jul 7, 2022

Hello Mathias, I have the same problem

node: v18.3.0
npm: 8.12.1

@lydia-roberts
Copy link

lydia-roberts commented Jul 13, 2022

I also have this issue
node: v16.13.2
npm: 8.1.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants