More than a single candidate module for core-js/object/assign
See original GitHub issuewebpack-isomorphic-tools/plugin] [error] More than a single candidate module was found in webpack stats for require()d path "[object Object]"
[webpack-isomorphic-tools/plugin] {
"id": 304,
"identifier": "/__redacted__/node_modules/babel-runtime/core-js/object/assign.js",
"name": "./~/babel-runtime/core-js/object/assign.js",
"index": 525,
"index2": 525,
"size": 94,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"assets": [],
"issuer": "/__redacted__/node_modules/babel-runtime/helpers/extends.js",
"failed": false,
"errors": 0,
"warnings": 0,
"reasons": [
{
"moduleId": 3,
"moduleIdentifier": "/__redacted__/node_modules/babel-runtime/helpers/extends.js",
"module": "./~/babel-runtime/helpers/extends.js",
"moduleName": "./~/babel-runtime/helpers/extends.js",
"type": "cjs require",
"userRequest": "babel-runtime/core-js/object/assign",
"loc": "3:21-67"
},
{
"moduleId": 29,
"moduleIdentifier": "/__redacted__/node_modules/react-bootstrap/lib/styleMaps.js",
"module": "./~/react-bootstrap/lib/styleMaps.js",
"moduleName": "./~/react-bootstrap/lib/styleMaps.js",
"type": "cjs require",
"userRequest": "babel-runtime/core-js/object/assign",
"loc": "3:21-67"
}
],
"source": "module.exports = { \"default\": require(\"core-js/library/fn/object/assign\"), __esModule: true };"
}
[webpack-isomorphic-tools/plugin] {
"id": 838,
"identifier": "/__redacted__/node_modules/isomorphic-style-loader/node_modules/babel-runtime/core-js/object/assign.js",
"name": "./~/isomorphic-style-loader/~/babel-runtime/core-js/object/assign.js",
"index": 734,
"index2": 727,
"size": 94,
"cacheable": true,
"built": true,
"optional": false,
"prefetched": false,
"chunks": [
0
],
"assets": [],
"issuer": "/__redacted__/node_modules/isomorphic-style-loader/lib/insertCss.js",
"failed": false,
"errors": 0,
"warnings": 0,
"reasons": [
{
"moduleId": 10,
"moduleIdentifier": "/__redacted__/node_modules/isomorphic-style-loader/lib/insertCss.js",
"module": "./~/isomorphic-style-loader/lib/insertCss.js",
"moduleName": "./~/isomorphic-style-loader/lib/insertCss.js",
"type": "cjs require",
"userRequest": "babel-runtime/core-js/object/assign",
"loc": "3:14-60"
}
],
"source": "module.exports = { \"default\": require(\"core-js/library/fn/object/assign\"), __esModule: true };"
}
/__redacted__/node_modules/webpack-isomorphic-tools/babel-transpiled-modules/plugin/write assets.js:369
throw new Error('More than a single candidate module was found in webpack stats');
^
Error: More than a single candidate module was found in webpack stats
at /__redacted__/node_modules/webpack-isomorphic-tools/babel-transpiled-modules/plugin/write assets.js:369:10
at resolver (/__redacted__/node_modules/webpack-isomorphic-tools/node_modules/require-hacker/babel-transpiled-modules/require hacker.js:131:17)
at Function._module3.default._findPath (/__redacted__/node_modules/webpack-isomorphic-tools/node_modules/require-hacker/babel-transpiled-modules/require hacker.js:436:24)
at Function.Module._resolveFilename (module.js:335:25)
at Function._module3.default._resolveFilename (/__redacted__/node_modules/webpack-isomorphic-tools/node_modules/require-hacker/babel-transpiled-modules/require hacker.js:403:34)
at Function.Module._load (module.js:287:25)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object.<anonymous> (!./../../node_modules/isomorphic-style-loader/lib/insertCss.js.webpack-module:4:15)
at Module._compile (module.js:435:26)
at Object._module3.default._extensions.(anonymous function) [as .webpack-module] (/__redacted__/node_modules/webpack-isomorphic-tools/node_modules/require-hacker/babel-transpiled-modules/require hacker.js:264:11)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object.<anonymous> (/__redacted__/src/sass/LoginSignupForm.scss.webpack-module:4:21)
at Module._compile (module.js:435:26)
at Object._module3.default._extensions.(anonymous function) [as .webpack-module] (/__redacted__/node_modules/webpack-isomorphic-tools/node_modules/require-hacker/babel-transpiled-modules/require hacker.js:264:11)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at populate_assets (/__redacted__/node_modules/webpack-isomorphic-tools/babel-transpiled-modules/plugin/write assets.js:395:31)
at Object.write_assets [as default] (/__redacted__/node_modules/webpack-isomorphic-tools/babel-transpiled-modules/plugin/write assets.js:63:2)
at Compiler.<anonymous> (/__redacted__/node_modules/webpack-isomorphic-tools/babel-transpiled-modules/plugin/plugin.js:175:27)
at Compiler.applyPlugins (/__redacted__/node_modules/webpack/node_modules/tapable/lib/Tapable.js:26:37)
at Compiler.<anonymous> (/__redacted__/node_modules/webpack/lib/Compiler.js:193:12)
at Compiler.emitRecords (/__redacted__/node_modules/webpack/lib/Compiler.js:282:37)
at Compiler.<anonymous> (/__redacted__/node_modules/webpack/lib/Compiler.js:187:11)
at /__redacted__/node_modules/webpack/lib/Compiler.js:275:11
Issue Analytics
- State:
- Created 8 years ago
- Reactions:2
- Comments:39 (19 by maintainers)
Top Results From Across the Web
Test Procedure Manual for Voting Systems - State of Michigan
The conduct of Pre-election Logic and Accuracy Testing of all tabulators and voter assist terminals. (VAT) prior to each election is the responsibility...
Read more >52 USC 30101: Definitions - U.S. Code
(5) The term "principal campaign committee" means a political committee designated and authorized by a candidate under section 30102(e)(1) of this title. (6) ......
Read more >ELECTION CODE CHAPTER 61. CONDUCT OF VOTING ...
OPENING AND CLOSING POLLING PLACE FOR VOTING. (a) Immediately before opening the polls for voting on the first day of early voting and...
Read more >Ranked Choice Voting Information - FairVote
This includes 2 states, 2 counties, and 59 cities. Military and overseas voters cast RCV ballots in federal runoff elections in 6 states....
Read more >NIST SP 1500-10x NIST Election Glossary Draft Version 1.0
A ballot that contains contest selections that require adjudication. adminstrator. A voting system user with the highest level of access. Synonyms: admin , ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I tried to use
target: 'node'
and failed miserably, so I had to revert towebpack-isomorphic-tools
.Below are my results after having resolved the issue and successfully integrated with https://github.com/kriasoft/isomorphic-style-loader
@halt-hammerzeit you might be interested in adding a manual for
isomorphic-style-loader
next to the one forstyle-loader
.Hi,
I think I was getting that error (
More than a single candidate module was found
) too because I had 2 components with same structure:and
where both components required
styles.css
relatively (i.e.import styles from './style.css'
).I think I fixed that by renaming each
styles.css
to their corresponding component name respectively. My setup was pretty full of stuff so I will test that again with minimal setup and will let you know once I have more info.