All Questions
261
questions
0
votes
0
answers
40
views
Appropriate loader to handle this file type .mjs | webpack
I recently added @radix-ui/react-navigation-menu to my project. However, upon attempting to rebuild, I encountered the following error message: the error..
Interestingly, other components from the ...
1
vote
0
answers
407
views
setting up project with Yarn 4 pnp, webpack and typescript
I am trying to set up my project with Yarn and webpack and typescript. You can see the code below. The problem I have is that when I import another .ts file, it gives me an error and can't resolve the ...
0
votes
0
answers
13
views
How can I make webpack search upwards for modules like vanilla Node require?
An excerpt from our webpack config file is below. It seems that webpack is searching for modules only from the directories listed in the 'modules' parameter (ie node_modules and ../../node_modules). ...
0
votes
0
answers
335
views
Yarn build failing because of babel plugin "Error: Cannot find package '@babel/plugin-preset-plugin-proposal-class-properties'"
I'm working on a rails 7 app that uses yarn. I've been trying for several hours to debug an issue during the built process without luck.
When I call yarn build, the build fails with:
yarn run v1.22.19
...
1
vote
2
answers
526
views
webpack-concat-text-plugin "node" is incompatible
The concat-text-webpack-plugin is nested deep in some package, and errors when I have NextJS and Node 18.
error [email protected]: The engine "node" is incompatible with this ...
1
vote
0
answers
110
views
Yarn can't use arguments on custom scripts
I have a few projects that uses the same structure, so I have a bunch of scripts set on package.json to run each project for development and production.
I was able to create custom args on the script ...
3
votes
0
answers
535
views
Webpack with yarn react tailwind, yarn build won't load css files
I am using webpack, yarn, react from scratch, and tailwind.
In dev mode everything works, but in production mode my app won't load tailwind css styles at all.
I can't get the scripts to work in my ...
1
vote
3
answers
4k
views
Storybook won't start: TypeError: The 'compilation' argument must be an instance of Compilation
Trying to start Storybook in a NX monorepo, but getting this error when trying these commands:
nx run projectName:storybook nx storybook projectName :
9% setup compilation SourceMapDevToolPlugin
C:\...
0
votes
2
answers
573
views
Module not found: Error: Can't resolve '@angular/platform-browser/animations'
Recently updated from Angular 12 to latest & updated respective package.json references to latest as well
Error:
Module not found: Error: Can't resolve '@angular/platform-browser/animations' in '...
0
votes
0
answers
327
views
How to recognize the react-router-dom in the npm package?
I have a component that creates a dynamic menu with a menu list. This list is taken from the backend. For this I create a dynamic menu with this list in my own npm package and use react-router-dom for ...
0
votes
1
answer
477
views
Yarn Build - Webpack - Invalid configuration object
i'm currently having an issue with Yarn Build on one of my Macbooks but not on another, i've scoured through multiple existing posts around this, but none address the specifics of this issue, as it ...
0
votes
1
answer
84
views
When implementing monorepo, where should I place configuration files such as webpack, eslint?
directory structure
project
│ README.md
│ .gitignore
│ package.json
│
└───packages
│ │
│ └───A
│ │ │ package.json
│ │ │ index.html
│ │ └───src
│ │
│ └───B
│ │ │ ...
1
vote
1
answer
1k
views
What makes Yarn encore dev take so long to build? Symfony 4.4
Summary of all below details (including edits)
Encore builds take very long to compile and the webpage takes very long to load. Chances of them working as expected is very rare, very random. The main ...
0
votes
1
answer
458
views
Duplicate dependency error when using webpack
I'm receiving the following error when running locally with webpack.
Ensure that there is only one instance of "graphql" in the node_modules
directory. If different versions of "...
0
votes
1
answer
1k
views
How can I install two different versions of the same dependency on the same project?
My question is: how to install all the missing peerDependencies with their different required versions? or How to Install Multiple Versions of the Same Package ?
When i run npx check-peer-dependencies ...