-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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: Cannot find module '@vercel\commerce-local\next.config' #681
Comments
Following this solved my issue @radgezito |
same problem, but with '@vercel\commerce-spree\next.config' |
I too have the same problem while running in windows. |
Same here, getting the very same issue.. any update on this? |
This is a quick hack and not a fix I am using
Code breakdown
|
Hey @radgezito @Qwertin the best thing to do is just checkout branch |
I hope this might help. I was able to run localhost no problem, just with yarn dev in the main monorepo folder (not in /site) , it starts localhost:3000 just fine. Where I wasted a day was getting preview deployments on git push. The builds would fail with: "error - failed to load next.config.js, see more info here https://nextjs.org/docs/messages/next-config-error" What made it work is overriding the Build Command in Build & Development Settings to |
I'm facing the same issue. I couldn't run it in the local. |
Also facing this problem |
Helped me to fix it for now. |
Also facing the same issue, Windows 10 fresh clone |
I ran into this issue as well, on a fresh clone on a Windows 11 machine this is how I fixed it:
And finally made changes to the After doing this on a fresh clone I was able to get it running without error using |
@aubryll Running |
@CristianCucunuba running yarn dev in the main folder still give me this error |
It worked for me too. Thank you. |
+1 to this issue, hoping it gets fixed instead of having to rely on the workaround. |
Trying to run this on a Windows 10 machine with the I noticed that it's making changes to my Using #681 (comment) as a temp workaround 🙏🏻 |
Thi issue should be fixed now by #728 |
What help me, I run the command |
@ashishkpaul run |
sir might be its not compiling in a root directory. its done within a 49ms |
sir i am using spree 4.4 , can you guide me on these errors by running the command
|
@ashishkpaul Where is the error? this is the same output I get on my installation, I am also using Spree 4.4. I would say ignore whatever you see there unless something is not working. |
Thanks sir for your time and efforts, it would be very nice if u may write
a production ready guide on it. Thanks again
…On Mon, 16 May 2022, 18:11 Aubry Lungu, ***@***.***> wrote:
What help me, I run the command yarn in a
./packages/"api_backend_provider" then run the command yarn dev in site
directory
@ashishkpaul <https://github.com/ashishkpaul> run yarn dev in the root
directory.
sir i am using spree 4.4 , can you guide me on these errors by running the
command yarn dev
next-commerce:dev: event - compiled client and server successfully in 5s (889 modules)
next-commerce:dev: getAllProducts called. Configuration: getAllProductsVariables: { first: 6 } config: { locale: 'en-US', locales: [ 'en-US', 'es' ] }
next-commerce:dev: apiFetch called. query = url = __UNUSED__ queryData = {
next-commerce:dev: variables: { methodPath: 'products.list', arguments: [ {}, [Object] ] }
next-commerce:dev: } fetchOptions = {}
next-commerce:dev: Looking for products.list in Spree Sdk.
next-commerce:dev: Checking part products.
next-commerce:dev: Calling the Spree API: GET https://stag.dingpack.com/api/v2/storefront/products?include=primary_variant%2Cvariants%2Cimages%2Coption_types%2Cvariants.option_values&per_page=6&image_transformation%5Bquality%5D=100&image_transformation%5Bsize%5D=1000x1000
next-commerce:dev <https://stag.dingpack.com/api/v2/storefront/products?include=primary_variant%2Cvariants%2Cimages%2Coption_types%2Cvariants.option_values&per_page=6&image_transformation%5Bquality%5D=100&image_transformation%5Bsize%5D=1000x1000next-commerce:dev>: getAllPages called. Configuration: query: undefined userConfig: { locale: 'en-US', locales: [ 'en-US', 'es' ] } preview: undefined url: undefined
next-commerce:dev: apiFetch called. query = url = __UNUSED__ queryData = { variables: { methodPath: 'pages.list', arguments: [ [Object] ] } } fetchOptions = {}
next-commerce:dev: Looking for pages.list in Spree Sdk.
next-commerce:dev: Checking part pages.
next-commerce:dev: Calling the Spree API: GET https://stag.dingpack.com/api/v2/storefront/cms_pages?per_page=500&filter%5Blocale_eq%5D=en-US
next-commerce:dev <https://stag.dingpack.com/api/v2/storefront/cms_pages?per_page=500&filter%5Blocale_eq%5D=en-USnext-commerce:dev>: getSiteInfo called. Configuration: query: undefined getSiteInfoVariables {} config: { locale: 'en-US', locales: [ 'en-US', 'es' ] }
next-commerce:dev: apiFetch called. query = url = __UNUSED__ queryData = { variables: { methodPath: 'taxons.list', arguments: [ [Object] ] } } fetchOptions = {}
next-commerce:dev: Looking for taxons.list in Spree Sdk.
next-commerce:dev: Checking part taxons.
next-commerce:dev: Calling the Spree API: GET https://stag.dingpack.com/api/v2/storefront/taxons?filter%5Bparent_permalink%5D=categories
next-commerce:dev <https://stag.dingpack.com/api/v2/storefront/taxons?filter%5Bparent_permalink%5D=categoriesnext-commerce:dev>: apiFetch called. query = url = __UNUSED__ queryData = { variables: { methodPath: 'taxons.list', arguments: [ [Object] ] } } fetchOptions = {}
next-commerce:dev: Looking for taxons.list in Spree Sdk.
next-commerce:dev: Checking part taxons.
next-commerce:dev: Calling the Spree API: GET https://stag.dingpack.com/api/v2/storefront/taxons?filter%5Bparent_permalink%5D=brands
@ashishkpaul <https://github.com/ashishkpaul> Where is the error? this is
the same output I get on my installation, I am also using Spree 4.4. I
would say ignore whatever you see there unless something is not working.
—
Reply to this email directly, view it on GitHub
<#681 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD4NU7ZVLYC3HYSTLHY6HXDVKI66HANCNFSM5OHNQWDA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@aubryll hello sir, Front page loading successfully, but its not fetching the products from menu links |
resolved by adding cors nginx policies on the side of spree hosted server |
After cloning the project, creating the .env.local file to use @vercel/commerce-local I get an error message when I run yarn dev command
$ yarn dev
yarn run v1.22.10
$ next dev
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
info - Loaded env from c:\test\commerce\site.env.local
error - Failed to load next.config.js, see more info here https://nextjs.org/docs/messages/next-config-error
Error: Cannot find module '@vercel\commerce-local\next.config'
Require stack:
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
at Function.mod._resolveFilename (c:\test\commerce\node_modules\next\dist\build\webpack\require-hook.js:179:28)
at resolveFileName (c:\test\commerce\node_modules\resolve-from\index.js:29:39)
at resolveFrom (c:\test\commerce\node_modules\resolve-from\index.js:43:9)
at module.exports (c:\test\commerce\node_modules\resolve-from\index.js:46:47)
at module.exports (c:\test\commerce\node_modules\import-from\index.js:4:55)
at module.exports (c:\test\commerce\node_modules\import-cwd\index.js:4:30)
at Object.withCommerceConfig (c:\test\commerce\packages\commerce\dist\config.cjs:19:30)
at withCommerceConfig (c:\test\commerce\site\commerce-config.js:102:15)
at Object. (c:\test\commerce\site\next.config.js:11:18) {
code: 'MODULE_NOT_FOUND',
requireStack: [ 'C:\temp\delete\commerce\site\noop.js' ]
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
The text was updated successfully, but these errors were encountered: