Pulsar-Edit-Highlights / selected

@Pulsar-Edit package for highlighting occurrences of your selection.

Home Page:https://web.pulsar-edit.dev/packages/highlight-selected

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Uncaught SyntaxError: Cannot use import statement outside a module

AlexandrViktorovich opened this issue · comments

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.56.0 x64
Electron: 9.4.4
OS: Unknown Windows version
Thrown From: highlight-selected package 0.17.0

Stack Trace

Uncaught SyntaxError: Cannot use import statement outside a module

.atom\packages\highlight-selected\lib\search-model.js:230

.atom\packages\minimap\lib\decoration.js:3
import { Emitter } from "atom"
^^^^^^

SyntaxError: Cannot use import statement outside a module
    at new Script (vm.js:84:7)
    at NativeCompileCache.runInThisContext (~/AppData/Local/atom/app-1.56.0/resources/app/static/<embedded>:11:148760)
    at Module.get_Module._compile (~/AppData/Local/atom/app-1.56.0/resources/app/static/<embedded>:11:149614)
    at Object.value [as .js] (~/AppData/Local/atom/app-1.56.0/resources/app/static/<embedded>:11:153385)
    at Module.load (internal/modules/cjs/loader.js:815:32)
    at Module._load (internal/modules/cjs/loader.js:727:14)
    at Function.Module._load (electron/js2c/asar.js:769:28)
    at Module.require (/app.asar/static/index.js:72:46)
    at require (~/AppData/Local/atom/app-1.56.0/resources/app/static/<embedded>:11:149153)
    at Minimap.decorateMarker (/packages/minimap/lib/mixins/decoration-management.js:327:37)
    at MinimapHighlightSelected.markerCreated (/packages/minimap-highlight-selected/lib/minimap-highlight-selected.coffee:102:28)
    at MinimapHighlightSelected.markerCreated (/packages/minimap-highlight-selected/lib/minimap-highlight-selected.coffee:3:59)
    at /packages/minimap-highlight-selected/lib/minimap-highlight-selected.coffee:64:24
    at Function.simpleDispatch (~/AppData/Local/atom/app-1.56.0/resources/app/static/<embedded>:11:1182710)
    at Emitter.emit (~/AppData/Local/atom/app-1.56.0/resources/app/static/<embedded>:11:1184151)
    at /packages/highlight-selected/lib/search-model.js:215:41
    at TextBuffer.scanInRange (~/AppData/Local/atom/app-1.56.0/resources/app/static/<embedded>:11:497018)
    at TextBuffer.scan (~/AppData/Local/atom/app-1.56.0/resources/app/static/<embedded>:11:496474)
    at TextEditor.scan (~/AppData/Local/atom/app-1.56.0/resources/app/static/<embedded>:11:43334)
    at SearchModel.highlightSelectionInEditor (/packages/highlight-selected/lib/search-model.js:176:14)
    at /packages/highlight-selected/lib/search-model.js:129:21
    at Array.forEach (<anonymous>)
    at SearchModel.handleSelection (/packages/highlight-selected/lib/search-model.js:128:26)
    at /packages/highlight-selected/lib/selection-manager.js:96:26)
    at later (/packages/highlight-selected/node_modules/debounce/index.js:27:23)

Commands

     -5:42.4.0 color-picker:open (div.highlights)
     -5:19.1.0 tabs:close-tab (div.title)
     -5:17.2.0 pane:reopen-closed-item (div.title)
  2x -4:37.2.0 Python run: run-f6 (input.hidden-input)
     -4:23.8.0 script:run (input.hidden-input)
     -4:19.4.0 Python run: run-f6 (input.hidden-input)
     -4:11.7.0 script:close-view (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
     -4:11.2.0 script:run (input.hidden-input)
     -3:47.8.0 editor:consolidate-selections (input.hidden-input)
     -0:58 command-palette:toggle (input.hidden-input)
     -0:53.8.0 core:move-down (input.hidden-input)
     -0:53.6.0 core:confirm (input.hidden-input)
     -0:53.6.0 settings-view:install-packages-and-themes (input.hidden-input)
  3x -0:11.7.0 core:backspace (input.hidden-input)
     -0:07.8.0 core:save (input.hidden-input)

Non-Core Packages

atom-beautify 0.33.4 
atom-live-server 2.3.0 
atom-material-syntax 1.0.8 
atom-material-ui 2.1.3 
atom-python-run 0.9.7 
atom-vim-ui 0.2.4 
city-lights-syntax 1.1.8 
city-lights-ui 1.5.3 
color-picker 2.3.0 
dark-plus-syntax 2.5.0 
file-icons 2.1.43 
highlight-selected 0.17.0 
kite 0.204.0 
light-owl-syntax 0.7.0 
minimap 4.29.9 
minimap-highlight-selected 4.6.1 
parrot-dark-syntax 1.1.2 
pigments 0.40.6 
script 3.26.0 
seti-ui 1.11.0 
seti-vs-syntax 0.1.1 
styri-syntax 1.0.0 
viscode-ui 0.3.1