-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error "Could not resolve entry (<module>)" when using manualChunks #2248
Comments
Did you ensure that the path to react is configured? Ie can you correctly
build ‘input: “react”’? You may need to include the Node resolver plugin.
…On Wed, 06 Jun 2018 at 22:35, Reinaldo Arrosi ***@***.***> wrote:
Given a simple application that uses react, when using
manualChunks: {
'vendor': ['react']
}
Rollup gives "Could not resolve entry (react)".
This is also reported (including sample code reproducing the issue) here #2084
(comment)
<#2084 (comment)>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2248>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAkiyjqpS3yWMqvOjm8xZi0KMyKx4-mOks5t6D0YgaJpZM4UdUx6>
.
|
I'm already using rollup-plugin-node-resolve. In fact, if I simply remove the import resolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
import babel from 'rollup-plugin-babel';
export default [
{
experimentalCodeSplitting: true,
input: [
'./index.jsx',
'./page1.jsx'
],
output: {
dir: './dist',
format: 'system'
},
// manualChunks: {
// 'vendor': ['react']
// },
plugins: [
resolve({ extensions: ['.jsx', '.js'] }),
commonjs(),
babel({ exclude: 'node_modules/**' })
]
}
]; Also, the same error occurs when using the following rollup.config.js (Using 'react' as 'input' as you suggested for testing): import resolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
import babel from 'rollup-plugin-babel';
export default [
{
input: 'react',
output: {
file: './dist/bundle.js',
format: 'system',
},
plugins: [
resolve(),
commonjs(),
babel({ exclude: 'node_modules/**' })
]
}
]; |
Ah, this might be a bug in rollup-plugin-node-resolve if it's not supporting the |
Should I open the issue there? |
It seems like that would be the place for it, yes. |
Given a simple application that uses react, when using
Rollup gives "Could not resolve entry (react)".
This is also reported (including sample code reproducing the issue) here #2084 (comment)
The text was updated successfully, but these errors were encountered: