Skip to content

Prettier Error #86

Open
Open
@vicente-dl

Description

@vicente-dl

Hello!
I have been trying to add a worker through this plugin, but I cannot stop getting errors from prettier related to core-js.
All the functions that I used I appear to be imported as double quotes when compiled.

error in ./src/workers/myworker.js

Module build failed (from ./node_modules/worker-plugin/loader.js):
ModuleError: Module Error (from ./node_modules/@vue/cli-plugin-eslint/node_modules/eslint-loader/index.js):

/Users/vicentediaz/pt/src/workers/myworker.js
1:9 error Replace "core-js/modules/es.array.for-each"); with 'core-js/modules/es.array.for-each') prettier/prettier
3:9 error Replace "core-js/modules/es.array.join"); with 'core-js/modules/es.array.join') prettier/prettier
5:9 error Replace "core-js/modules/es.array.map"); with 'core-js/modules/es.array.map') prettier/prettier
7:9 error Replace "core-js/modules/es.function.name"); with 'core-js/modules/es.function.name') prettier/prettier
9:9 error Replace "core-js/modules/es.object.keys"); with 'core-js/modules/es.object.keys') prettier/prettier
11:9 error Replace "core-js/modules/es.object.to-string"); with 'core-js/modules/es.object.to-string') prettier/prettier
13:9 error Replace "core-js/modules/es.regexp.exec"); with 'core-js/modules/es.regexp.exec') prettier/prettier
15:9 error Replace "core-js/modules/es.string.split"); with 'core-js/modules/es.string.split') prettier/prettier
17:9 error Replace "core-js/modules/web.dom-collections.for-each"); with 'core-js/modules/web.dom-collections.for-each') prettier/prettier
19:42 error Replace "/Users/vicentediaz/pt/node_modules/@babel/runtime/helpers/createForOfIteratorHelper"); with '/Users/vicentediaz/pt/node_modules/@babel/runtime/helpers/createForOfIteratorHelper') prettier/prettier

Has anyone had any similar problem??

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions