You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i tried to install module cancelable-promise and this package has inside its own package.json babel definition:
"babel": {
"presets": [
"es2015"
]
},
But, this module main is linked to dist/CancelablePromise.js, which is already transpiled.
Problem is that parcel bundler wants es2015 because its found it inside this package.json.
import CancelablePromise from 'cancelable-promise';
F:\project\node_modules\cancelable-promise\dist\CancelablePromise.js: Couldn't find preset "es2015" relative to directory "F:\\project
at F:\project\node_modules\babel-core\lib\transformation\file\options\option-manager.js:293:19
at Array.map (<anonymous>)
at OptionManager.resolvePresets (F:\project\node_modules\babel-core\lib\transformation\file\options\option-manager.js:275:20)
at OptionManager.mergePresets (F:\project\node_modules\babel-core\lib\transformation\file\options\option-manager.js:264:10)
at OptionManager.mergeOptions (F:\project\node_modules\babel-core\lib\transformation\file\options\option-manager.js:249:14)
at OptionManager.init (F:\project\node_modules\babel-core\lib\transformation\file\options\option-manager.js:368:12)
at File.initOptions (F:\project\node_modules\babel-core\lib\transformation\file\index.js:212:65)
at new File (F:\project\node_modules\babel-core\lib\transformation\file\index.js:135:24)
at JSAsset.getParserOptions (F:\project\node_modules\parcel-bundler\src\assets\JSAsset.js:71:20)
at JSAsset.parse (F:\project\node_modules\parcel-bundler\src\assets\JSAsset.js:79:32)
and i dont need to have es2015.
When ill delete these line inside theirs package.json, its working.
The text was updated successfully, but these errors were encountered:
Hi,
i tried to install module
cancelable-promise
and this package has inside its ownpackage.json
babel definition:But, this module main is linked to
dist/CancelablePromise.js
, which is already transpiled.Problem is that parcel bundler wants
es2015
because its found it inside this package.json.import CancelablePromise from 'cancelable-promise';
and i dont need to have
es2015
.When ill delete these line inside theirs
package.json
, its working.The text was updated successfully, but these errors were encountered: