webpack Questions
3
Solved
I have a new vue-cli 3 based project, which has .graphql files in the src/ folder, e.g.:
#import "./track-list-fragment.graphql"
query ListTracks(
$sortBy: String
$order: String
$limit: Int
$...
3
I am currently exploring about micro frontend with Module Federation. I just forked a sandbox, tried it with success when the both modules available. It has 2 modules, app1 as the host, and app2 as...
Mcknight asked 21/1, 2022 at 4:56
7
Solved
I have an existing project which I lately installed on a new equipment.
It is a Laravel + vue project.
When I run npm run watch I get the following error:
> development
> cross-env NODE_ENV=d...
10
I running server localhost and get error bundle.js:1 Uncaught SyntaxError: Unexpected token <
In output bundle.js is html code of index.html file. This is setting my webpack.config file. Can yo...
Jessamyn asked 14/6, 2017 at 9:47
5
Solved
I'm busy learning React with CSS-Modules and I don't quite understand how one would store variables? For example, in Sass you're able to do this:
// _variables.scss
$primary-color: #f1f1f1;
// h...
Kall asked 24/11, 2016 at 6:45
10
Solved
I have a React/Typescript project with Storybook. Storybook works great, but as soon as I start importing files with aliases, it crashes.
Example:
import Foo from "@components/foo" => crash
...
5
Solved
I am taking a course on Udemy (it is Brad Schiff's React for the Rest of Us course here) that is based on React and I am receiving an error related to webpack which is keeping it from compiling.
I ...
Dudleyduds asked 18/2, 2021 at 7:41
4
in my CRA project each single time I ran it I faced this error in my console. I think it is due to typescript server. Is there a way to solve it ?
99% done plugins webpack-hot-middlewarewebpack bui...
Otiose asked 28/6, 2022 at 10:42
3
I have a NextJS app that keeps spewing out these warnings every now and then:
<w> [webpack.cache.PackFileCacheStrategy] Serializing big strings (118kiB) impacts deserialization performance (c...
2
Solved
In an Angular 18 application, I need to add real-time technology. The chosen technology is SignalR, but I'm having trouble adding the package and getting a successful build. It seems the error is r...
Kasten asked 13/6 at 13:45
10
I am wondering how to set up an inline svg with webpack?
I am following the react-webpack-cookbook.
I have my webpack.config set up correctly with the file loader.
However the example shows u...
Aloin asked 13/12, 2015 at 23:45
5
I have
import fs from 'fs'
and in my package.json I have
Then I run the command
> npm i fs
> [email protected] node_modules/fs
next in my React store I import 'fs' modu...
3
I am building an Electron app in Angular and I am upgrading a couple of dependencies to the latest versions.
✅ Electron stays on v19
✅ Tailwindcss v3.1.8
⬆️ Angular v11 to v14
⬆️ Webpack v4.46.0 t...
Marlonmarlow asked 5/9, 2022 at 20:29
10
Solved
(node:21216) UnhandledPromiseRejectionWarning: Error: Cannot find module 'ajv/dist/compile/codegen'
loader.js:815 Function.Module._resolveFilename
internal/modules/cjs/loader.js:815:15
loader.js:...
Nelan asked 18/11, 2021 at 12:42
18
Every time I try to create a new project (vue create my-project), I get this error:
ERROR : command failed: npm install --loglevel error
I'm on PC / Windows 10, Vue-cli 3.2.1, Node 8.11.3, Npm...
2
Solved
I'm building a TS library bundled with Webpack 5.3.2. I then try to load the output bundle, dist/scalextric.js, into a node.js script:
node -e 'console.dir(Object.keys(require("./dist/scalextr...
Rycca asked 2/11, 2020 at 4:36
3
As far as I know /dist is for production environments. It contains uglified and similar files. But why do we need a /build folder ?
Grin asked 28/3, 2016 at 3:8
9
Solved
I created a small JS module which I intend to make an npm package, but for now is just on GitHub. This module is written in ES6 and SCSS, and is thus relying on webpack and babel for transpilation....
Interactive asked 20/5, 2018 at 13:19
4
Solved
I created a react setup for a little project and decided to add tailwind. It was successful but when I add the class to the components, I don't see any change.
This is the link to the repository
Flense asked 3/6, 2020 at 10:33
5
Trying to run a project on my VPS but im constantly getting this error flagged up. i have tried clearing and installing everything fresh but the problem still occurs. any help would be greatly appr...
16
Solved
We have a vanilla Vue/Vite setup and I'm receiving TypeError: Failed to fetch dynamically imported module on sentry logs.
It seems like the errors are correlated in time with new deployment to prod...
Bowen asked 23/9, 2021 at 12:48
6
When I try to compile React component with Laravel Mix in my Laravel project it raises error 2 lifecycle.
E:\MY PROJECTS\Samriddhi Institute> npm run dev
@ dev E:\MY PROJECTS\Samriddhi Institu...
Maury asked 17/9, 2021 at 6:14
1
Angular Proxy Config "Not rewriting GET /api/account/user because the client prefers JSON"
Having run into a CORS error in Angular v16.1.0 (using port 44498) with a ASPNET CORE DotNet 6.0 backend (using port 44303), I have followed the recommendation of using the Angular Proxy to rewrite...
Cummings asked 28/8, 2023 at 19:44
10
I've got an error while trying to build a simple NodeJS app:
Even that Visual Code prompts an error, my code got running.. When I remove the .ts extension from import statement, I got an error t...
3
Solved
I have a webpack project with this in my "main.ts" module:
import {Elm} from "./MainModule";
it fails with:
TS2307: Cannot find module './MainModule'.
but when I switch my "tsconfig.json" fro...
Descent asked 16/12, 2018 at 15:16
© 2022 - 2024 — McMap. All rights reserved.