Skip to content
This repository has been archived by the owner on Jun 10, 2023. It is now read-only.

Update dependencies and use ES modules. #116

Closed
wants to merge 2 commits into from
Closed

Conversation

ioquatix
Copy link
Owner

@ioquatix ioquatix commented Aug 20, 2021

@huba I can't get this to work.

Cannot use import statement outside a module

/Users/samuel/.atom/packages/script-runner/index.js:1
(function (exports, require, module, __filename, __dirname, process, global, Buffer) { return function (exports, require, module, __filename, __dirname) { import './lib/script-runner.mjs'
                                                                                                                                                           ^^^^^^
SyntaxError: Cannot use import statement outside a module
    at new Script (vm.js:84:7)

@thatcomputerguy0101
Copy link

Maybe try using @qiwi/esm instead? It seems to have some updates past the original esm including support for the node: protocol.

@ioquatix ioquatix closed this Jun 10, 2023
@ioquatix ioquatix deleted the update-dependencies branch June 10, 2023 14:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants