Questions tagged [cross-env]

cross-env is a tool for Python extension modules meant for cross-compiling.

cross-env is a tool for Python extension modules meant for cross-compiling. This tag is not meant to be used for questions that talk about any cross-environment issues. Only use for questions related to the Python plugin.

22 questions
0
votes
2 answers

Nest.js + TypeORM. TypeORM didn't see .env file

I have some issue about typeorm migrations. I have typeorm config (see below). data-source.ts: import { DataSource, DataSourceOptions } from 'typeorm'; export const dataSourceOptions: DataSourceOptions = { type: 'postgres', host:…
0
votes
0 answers

Logs of Next.js 13 with Node.js DevTools in windows are not working

Logs of Next.js 13 with DevTools in windows are not working. In the package.json I wrote this line: 'cross-env NODE_OPTIONS='--inspect' next dev' With the previous version of Nextjs 12 it works. I printed in a console log the process.env and with…
JPcode
  • 1
  • 1
0
votes
0 answers

How to import from a bundle created in webpack?

I'm working on a project that's based on a given sample project that uses a package named Seeso. The sample project uses the 'cross-env' and 'parcel-bundler' packages which are both deprecated, and I would like to replace them with pure node. I…
0
votes
2 answers

Add env variable in package.json brefore cypress runs in headless mode

I want to find out if cypress runs or doesn't run in the NextJS application. My idea is prevent a some http requests in the NextJS application if the Cypress tests are running. I am able to catch if cypress is running when I run "npx cypress open"…
tcetin
  • 979
  • 1
  • 21
  • 48
0
votes
1 answer

cross-env not found on gitlab production but works on staging

I use gitlab CI to deploy vuejs app. For staging, everything works great. I copy paste the same configuration for production and I have : $ npm run build > cross-env NODE_ENV=production && vue-cli-service build sh: 1: cross-env: not found Here is…
Alexy
  • 780
  • 6
  • 22
0
votes
0 answers

I have trouble with npm run dev & cross-env. Laravel 8

Error after run npm run dev : enter image description here package.json config: { "private": true, "scripts": { "dev": "npm run development", "development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js…
Andrei
  • 1
  • 1
0
votes
1 answer

Using http-proxy-middleware with typescript and cross-env

I am trying to set up a proxy for my React TypeScript app using http-proxy-middleware to prevent CORS errors while developing. I have this in my project: proxy/proxy.tsx import * as express from 'express' import { createProxyMiddleware } from…
1
2