Comments (3)
I tried a few things, I tried to migrate to the latest beta version of nx (without success) so I reverted changes and did a fresh npm install using node v20. I'd tried this countless times before without success but for some reason it magically works now?
I'm at a loss as to what I did to to get it working but I'm thankful that it does work. The only real differences are that I deleted my package-lock file (ah perhaps that was the problem?) and reinstalled everything. Anyway it's working now!
from nx.
Okay now I did the same again and the error is back!
> nx run ui-components:storybook
.\libs\ui-components\.storybook\main.ts:1
import type { StorybookConfig } from '@storybook/angular';
^^^^^^
SyntaxError: Cannot use import statement outside a module
at wrapSafe (node:internal/modules/cjs/loader:1281:20)
at Module._compile (node:internal/modules/cjs/loader:1321:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
at newLoader (.\node_modules\pirates\lib\index.js:121:7)
at Object.newLoader [as .ts] (.\node_modules\pirates\lib\index.js:121:7)
at Module.load (node:internal/modules/cjs/loader:1208:32)
at Function.Module._load (node:internal/modules/cjs/loader:1024:12)
at Module.require (node:internal/modules/cjs/loader:1233:19)
at Module.require (.\node_modules\nx\src\adapter\compat.js:66:40)
at require (node:internal/modules/helpers:179:18)
attention => Storybook now collects completely anonymous telemetry regarding usage.
This information is used to shape Storybook's roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://storybook.js.org/telemetry
NX Broken build, fix the error above.
You may need to refresh the browser.
from nx.
Related Issues (20)
- After migration to 19.1.0 -> findCacheDirectory is not a function HOT 3
- Can't use enforce-module-boundaries when running ESLint directly
- nx release publish launch 'npm dist-tag add' command on a package version which does not exists on the npm registry
- nx release version ignore changes to a package when the associated commit comes from the github "squash and merge" command
- Project Crystal: Using a custom plugin causes the jest plugin to crash HOT 2
- nx.bat prints out its entire contents when it's run
- `npx nx@latest init` fails on Windows when installing `nx/gradle` plugin
- Memory issues building multiple Angular apps with NX on bitbucket pipelines
- Yarn installation error on `create-nx-workspace` and Expo setup due to `peer dependencies are incorrectly met` HOT 4
- Cache not invalidated by previous targets (dependsOn)
- @nx/esbuild:esbuild with `"declaration": true` always executes from $PWD HOT 2
- nx/plugin e2e throws ENOENT out of the box
- Project are not affected when files from default namedInput are touched
- Incorrect serve command in README.md when initializing a fresh React (Remix) project
- Cannot prebuild Expo app with brand new nx monorepo because Gradle `expo-modules-core` HOT 3
- "An error occured while creating pruned lockfile" HOT 2
- Nx CLI is very slow when local plugins implement `createNodes` HOT 4
- [React] [Weback] Cannot run tasks after generated app with webpack and move to nx-enhance HOT 1
- [Error] Migrate no-extra-semi rules into user config, out of nx extendable configs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nx.