74 questions
0
votes
0
answers
118
views
Issue with running the web build after upgrading to Expo 53 and React Native 0.79
enter image description here
What I tried:
Updated to Expo 53 and React Native 0.79.
Added babel-loader to webpack.config.js to transpile @ui-kitten/components and react-native modules.
Set up babel....
0
votes
1
answer
285
views
Webpack Module not found: Error: Can't resolve './src'
I am trying to set up a webpack build pipeline using typescript. I want to set up separate development and production builds as per the documentation: https://webpack.js.org/guides/production/#setup
I ...
1
vote
1
answer
102
views
Module not found: Error: Can't resolve './token.did.js' in '/home/name/ic-projects/token/src/declarations/token'
enter image description hereI am new to Web 3.0 programming. I was making an app for crypto token creation. while I was running the application, it was giving an error can't resolve:
./token.did.js' ...
1
vote
2
answers
953
views
Use opencascade.js in Vite program,when I run and then get some error : [ERROR]Could not resolve "a"
My program is typescript + three.js + vue3 + vite . My operation is as follows:
// terminal
npm i opencascade.js@beta
npm i vite-plugin-wasm
// vite.config.js
import { defineConfig } from 'vite'
...
0
votes
1
answer
1k
views
dfx deploy --network ic failing
I am trying to deploy my first canister on the internet computer for an online class I am taking. Once I issue the command "dfx deploy --network ic" in the terminal I receive this output
...
0
votes
0
answers
117
views
Getting an error during webpack build while using CSS modules
Error
1 | // extracted by mini-css-extract-plugin
2 | export default {"lala":"hQupzgS9tEJmjp6wWbAk"};
(lala is classname)
CSS modules is working fine and changes are reflecting ...
1
vote
0
answers
27
views
Benchmark.js when used in '.jsx' file throws error "Critical dependency: the request of a dependency is an expression"
I am trying to get benchmark results of a loop used and display it.
My code:
import Benchmark from 'benchmark';
import React, { useState } from 'react';
import Navigation from '../Navigation/...
0
votes
0
answers
77
views
How to prevent 404 errors when browser is refreshed?
I want Angular(v.13) can initialise and handle routing instead of trying to handle it on the server.
I've searched "Update webpack dev server config" which tells the webpack dev server to ...
1
vote
1
answer
738
views
connection string generated by atlas cluster using terraform not in correct format
So im using terraform to create an atlas cluster but the output im getting is incompleteate to do my request terraform is givim me this:
mongodb+srv://esc-app-dbcluster-devel.b59mwv7.mongodb.net
and ...
8
votes
3
answers
22k
views
How to use fallback: { 'path': require.resolve('path-browserify'), in webpack?
I'm getting this error:
If you want to include a polyfill, you need to: - add a fallback 'resolve.fallback: { "path": require.resolve("path-browserify") }' - install 'path-...
1
vote
0
answers
440
views
How to correctly load .pcss - postcss files with webpack?
I'm trying, without success so far, to load postcss , .pcss files with webpack
Packages installed :
"postcss": "^8.4.13",
"postcss-flexbugs-fixes": "^5.0.2",
&...
4
votes
0
answers
690
views
webpack < 5 used to include polyfills for node.js core modules by default
I am beginner to react js. Please someone provide input for below issue.
In local system react js application is working fine but when i am generating build from Jenkins compilation is failing and ...
4
votes
1
answer
1k
views
Alias the package in your webpack config: react native web maps ; react native maps
I need to use react native web maps in react native project ,
i'm using expo and need to alias package in my webpack.config.js
i want to use both ios/web version for my map.
I m fairly new to ...
0
votes
1
answer
2k
views
Webpack : from webpack.config.js to webpack.dev.js
I have a question regarding webpack config files.
I'm new at this technology.
So far everything was working well until I changed the name of the webpack.config.js file to webpack.dev.js.
Now the js in ...
1
vote
2
answers
2k
views
import { ipcRenderer } from 'electron' produces this error: __dirname is not defined
With this simple vue page:
<template>
<div class="home">
<HelloWorld msg="Welcome to Your Vue.js App"/>
</div>
</template>
<script>
...
4
votes
1
answer
2k
views
Webpack can't find import needed for Typescript type resolution. How to fix this?
My project uses typescript and built with webpack.
I have a typings file that comes from a third part lib located under node_modules/@types/libname/custom.d.ts. That file has a namespace declaration ...
0
votes
1
answer
79
views
What is the goal of module.exports in webpack.config.js?
We are not importing this object anywhere so I am wondering why do we export it ?
Thank you for your willingness to help !
0
votes
1
answer
572
views
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. C#
I'm trying to use the $.getJSON() function in javascript but I get this error:
"You may need an appropriate loader to handle this file type,
currently no loaders are configured to process this ...
3
votes
0
answers
384
views
Nativescript vue webpack configaration missing
I;m beginner to nativescript-vue. When i initiate my project with following command tns run android it will occur below error
The webpack configuration file /home/camilus/laravel/vue-native/drawer/...
0
votes
1
answer
1k
views
How to use environment variables that were defined in Webpack?
I am currently trying to add Google oauth to a React App I am creating. However I am running into a problem. I have defined some variables in my webpack but when I add them to my react code they are ...
0
votes
0
answers
469
views
How to get an object (that uses esnext syntax) from webpack config in typescript
What I'm trying to achieve is to use dynamically created object in webpack config in a typescript script project (that uses esnext module syntax like import, export, dynamic import())
i.e. something ...
0
votes
1
answer
94
views
Why my webpack build worked so strange after adding resolve options of webpack configuration?
Actually,I don't know how to explain my question.At beginning,I come across some problem when I add resolve.alias to my webpack output modules———it doesn't work after my adding!then I found there're ...
-3
votes
1
answer
109
views
Not able to run react project
I am new to reactjs. i am trying to write webpack.
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
entry: './main.js',
output: {
path: ...
1
vote
1
answer
2k
views
How to properly load CSS from an external module in React?
In my react.js app I am trying to use an external module (React Toastify)
using the following statement:
import { ToastContainer, toast } from 'react-toastify';
import 'react-toastify/dist/...
2
votes
2
answers
1k
views
Webpack 4 - Preserve folder structure for bundles
I'm can't preserve folder structure for my output bundles.
I tried to use [path] placeholder but it doesn't work.
There is similar thread but it does not answer my question.
I'm using: Webpack 4.28....