Comments (8)
@aackerman
create-react-app 3.0.0
Clean install works.
So, I do not have complains about plugin, it's my environment issue.
(As I said... debris)
Thank you for great plugin.
from circular-dependency-plugin.
Hi @kruglay can you please include you exact versions of the plugin, webpack, and if possible a stack trace. I can take a look at this later tonight.
from circular-dependency-plugin.
Here a screen with error
"circular-dependency-plugin": "5.0.2",
"webpack": "4.27.1",
stack trace from log file:
0 info it worked if it ends with ok
1 verbose cli [ '/home/kruglay/.nvm/versions/node/v10.11.0/bin/node',
1 verbose cli '/home/kruglay/.nvm/versions/node/v10.11.0/lib/node_modules/npm/bin/npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'start',
1 verbose cli '--scripts-prepend-node-path=auto' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle [email protected]~prestart: [email protected]
6 info lifecycle [email protected]~start: [email protected]
7 verbose lifecycle [email protected]~start: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~start: PATH: /home/kruglay/.nvm/versions/node/v10.11.0/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/kruglay/MVS/dash/node_modules/.bin:/home/kruglay/.nvm/versions/node/v10.11.0/bin:/home/kruglay/.local/share/umake/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin
9 verbose lifecycle [email protected]~start: CWD: /home/kruglay/MVS/dash
10 silly lifecycle [email protected]~start: Args: [ '-c', 'node scripts/start.js' ]
11 silly lifecycle [email protected]~start: Returned: code: 1 signal: null
12 info lifecycle [email protected]~start: Failed to exec start script
13 verbose stack Error: [email protected] start: `node scripts/start.js`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (/home/kruglay/.nvm/versions/node/v10.11.0/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
13 verbose stack at EventEmitter.emit (events.js:182:13)
13 verbose stack at ChildProcess.<anonymous> (/home/kruglay/.nvm/versions/node/v10.11.0/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:182:13)
13 verbose stack at maybeClose (internal/child_process.js:962:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
14 verbose pkgid [email protected]
15 verbose cwd /home/kruglay/MVS/dash
16 verbose Linux 4.18.0-20.2-liquorix-amd64
17 verbose argv "/home/kruglay/.nvm/versions/node/v10.11.0/bin/node" "/home/kruglay/.nvm/versions/node/v10.11.0/lib/node_modules/npm/bin/npm-cli.js" "run" "start" "--scripts-prepend-node-path=auto"
18 verbose node v10.11.0
19 verbose npm v6.4.1
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] start: `node scripts/start.js`
22 error Exit status 1
23 error Failed at the [email protected] start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
from circular-dependency-plugin.
+-- [email protected]
`-- [email protected]
Error in version [email protected]
- Cannot read property 'tap' of undefined
[email protected]
- DeprecationWarning: Tapable.plugin is deprecated. Use new API on .hooks
instead
from circular-dependency-plugin.
@unlight do you have a stack trace you can include?
Version 5 of the plugin is expected to work with webpack >= 4.0.1 and I would expect that the warning DeprecationWarning: Tapable.plugin is deprecated. Use new API on .hooks instead
is not for this plugin because the .hooks
syntax is being used. https://github.com/aackerman/circular-dependency-plugin/blob/master/index.js#L21-L22
from circular-dependency-plugin.
I was also able to test this with Node 10 and webpack 4.29.6 and I didn't run into any issues.
from circular-dependency-plugin.
Sorry, my bad. I pasted plugin to wrong place.
After create-react-app eject, I got webpack.config 650+ lines, there are several places with plugins
section in resolve, modules, etc. I lost in debris.
Version 5.0.2 is working ok with [email protected] (but not with webpack after react-scripts eject, because it launches webpack in subprocess - that's why is hard to provide stack trace)
from circular-dependency-plugin.
@unlight can you include your version of create-react-app
? I'm seeing this working with the defaults for these versions.
create-react-app 3.0.1
circular-dependency-plugin 5.0.2
webpack 4.29.6
I essentially ran the following on macOS
brew upgrade yarn
yarn create react-app test && cd test
yarn run eject
yarn add circular-dependency-plugin
# edit webpack.config.js in config
# add `const CircularDependencyPlugin = require('circular-dependency-plugin')
# add `new CircularDependencyPlugin()` to the plugins section
yarn start
from circular-dependency-plugin.
Related Issues (20)
- Typescript Type Dependencies Not Found HOT 2
- still has warnning when excluded HOT 1
- SASS files fail with error that file is circular dependency of itself HOT 3
- Named exports and imports circulars HOT 1
- webpack@5 support HOT 20
- Performance degradation webpack 5.3.2 + this plugin 5.2.2 on recompile HOT 3
- Improve readme.md
- [email protected] support with circular dependency HOT 3
- Circular dependency checker can be slow HOT 1
- Support for ignoring lazy (not weak) async imports HOT 2
- Webpack 5 HOT 4
- Support for ignore React.lazy async imports
- Log to file? HOT 2
- @types/circular-dependency-plugin is not compatible with Webpack 5 HOT 3
- Cannot read property 'tap' of undefined HOT 1
- TypeError: plugin.options.include.test is not a function HOT 2
- This plugin does not appear to work in webpack=> 4.64.4 typeScript => 4.5.5 react=> 17.0.2 environments HOT 2
- Escaped forward slashes in paths do not work on Windows
- Fast builds during development HOT 2
- [FR] Vite Support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from circular-dependency-plugin.