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
{{ message }}
This repository was archived by the owner on Aug 28, 2024. It is now read-only.
Please specify what version of the library you are using: [ ^2.0.2 ]
Expected / Desired Behavior / Question
that webpack/babel works correctly. This works in ^1.0.6 but not in ^2.0.2
Observed Behavior
when i run the commend gulp package:debug-code
webpack throws this error:
ERROR in ./~/sp-pnp-js/lib/pnp.js
Module build failed: Error: Couldn't find preset "latest" relative to directory "C:\code\SupplierForms\node_modules\sp-pnp-js"
at C:\code\SupplierForms\node_modules\babel-core\lib\transformation\file\options\option-manager.js:292:19
at Array.map (native)
at OptionManager.resolvePresets (C:\code\SupplierForms\node_modules\babel-core\lib\transformation\file\options\option-manager.js:274:20)
at OptionManager.mergePresets (C:\code\SupplierForms\node_modules\babel-core\lib\transformation\file\options\option-manager.js:263:10)
at OptionManager.mergeOptions (C:\code\SupplierForms\node_modules\babel-core\lib\transformation\file\options\option-manager.js:248:14)
at OptionManager.init (C:\code\SupplierForms\node_modules\babel-core\lib\transformation\file\options\option-manager.js:367:12)
at File.initOptions (C:\code\SupplierForms\node_modules\babel-core\lib\transformation\file\index.js:216:65)
at new File (C:\code\SupplierForms\node_modules\babel-core\lib\transformation\file\index.js:139:24)
at Pipeline.transform (C:\code\SupplierForms\node_modules\babel-core\lib\transformation\pipeline.js:46:16)
at transpile (C:\code\SupplierForms\node_modules\babel-loader\lib\index.js:38:20)
at Object.module.exports (C:\code\SupplierForms\node_modules\babel-loader\lib\index.js:133:12)
@ ./debugging/src/app-config.js 4:18-38
ERROR in ./~/sp-pnp-js/lib/utils/logging.js
Module build failed: Error: Couldn't find preset "latest" relative to directory "C:\\code\\SupplierForms\\node_modules\\sp-pnp-js"
at C:\code\SupplierForms\node_modules\babel-core\lib\transformation\file\options\option-manager.js:292:19
at Array.map (native)
at OptionManager.resolvePresets (C:\code\SupplierForms\node_modules\babel-core\lib\transformation\file\options\option-manager.js:274:20)
at OptionManager.mergePresets (C:\code\SupplierForms\node_modules\babel-core\lib\transformation\file\options\option-manager.js:263:10)
at OptionManager.mergeOptions (C:\code\SupplierForms\node_modules\babel-core\lib\transformation\file\options\option-manager.js:248:14)
at OptionManager.init (C:\code\SupplierForms\node_modules\babel-core\lib\transformation\file\options\option-manager.js:367:12)
at File.initOptions (C:\code\SupplierForms\node_modules\babel-core\lib\transformation\file\index.js:216:65)
at new File (C:\code\SupplierForms\node_modules\babel-core\lib\transformation\file\index.js:139:24)
at Pipeline.transform (C:\code\SupplierForms\node_modules\babel-core\lib\transformation\pipeline.js:46:16)
at transpile (C:\code\SupplierForms\node_modules\babel-loader\lib\index.js:38:20)
at Object.module.exports (C:\code\SupplierForms\node_modules\babel-loader\lib\index.js:133:12)
@ ./debugging/src/SharePointContext.js 5:16-54
Category
[ ] Enhancement
[X ] Bug
[ ] Question
Version
Please specify what version of the library you are using: [ ^2.0.2 ]
Expected / Desired Behavior / Question
that webpack/babel works correctly. This works in ^1.0.6 but not in ^2.0.2
Observed Behavior
when i run the commend gulp package:debug-code
webpack throws this error:
ERROR in ./~/sp-pnp-js/lib/pnp.js
Module build failed: Error: Couldn't find preset "latest" relative to directory "C:\code\SupplierForms\node_modules\sp-pnp-js"
at C:\code\SupplierForms\node_modules\babel-core\lib\transformation\file\options\option-manager.js:292:19
at Array.map (native)
at OptionManager.resolvePresets (C:\code\SupplierForms\node_modules\babel-core\lib\transformation\file\options\option-manager.js:274:20)
at OptionManager.mergePresets (C:\code\SupplierForms\node_modules\babel-core\lib\transformation\file\options\option-manager.js:263:10)
at OptionManager.mergeOptions (C:\code\SupplierForms\node_modules\babel-core\lib\transformation\file\options\option-manager.js:248:14)
at OptionManager.init (C:\code\SupplierForms\node_modules\babel-core\lib\transformation\file\options\option-manager.js:367:12)
at File.initOptions (C:\code\SupplierForms\node_modules\babel-core\lib\transformation\file\index.js:216:65)
at new File (C:\code\SupplierForms\node_modules\babel-core\lib\transformation\file\index.js:139:24)
at Pipeline.transform (C:\code\SupplierForms\node_modules\babel-core\lib\transformation\pipeline.js:46:16)
at transpile (C:\code\SupplierForms\node_modules\babel-loader\lib\index.js:38:20)
at Object.module.exports (C:\code\SupplierForms\node_modules\babel-loader\lib\index.js:133:12)
@ ./debugging/src/app-config.js 4:18-38
Steps to Reproduce
using the webpack config below and
webpack.config.debug.txt
and if you use the gulp task
'''javascript
gulp.task("package:debug-code", ["build:debug"], (done) => {
});
'''
Submission Guidelines
Thanks!