Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: SolidJS (_$$registry is not defined) when trying to npm run dev #1533

Closed
Alfredoes234 opened this issue Feb 7, 2024 · 5 comments · Fixed by #1567
Closed

[Bug]: SolidJS (_$$registry is not defined) when trying to npm run dev #1533

Alfredoes234 opened this issue Feb 7, 2024 · 5 comments · Fixed by #1567
Labels
🐞 bug Something isn't working

Comments

@Alfredoes234
Copy link

Version

System:
    OS: Windows 10 10.0.19045
    CPU: (4) x64 Intel(R) Core(TM) i5-6400 CPU @ 2.70GHz
    Memory: 1.84 GB / 7.87 GB
  Browsers:
    Edge: Chromium (121.0.2277.83)
    Internet Explorer: 11.0.19041.3636
  npmPackages:
    @rsbuild/core: ^0.3.11 => 0.3.11 
    @rsbuild/plugin-babel: ^0.3.11 => 0.3.11
    @rsbuild/plugin-solid: ^0.3.11 => 0.3.11

Details

When trying to access the site through npm run dev it gives an error and error's on build.
image
image

Reproduce link

https://github.com/Alfredoes234/show

Reproduce Steps

  1. npm install
  2. npm run dev produces first errror
  3. Building produces next error
@Alfredoes234 Alfredoes234 added the 🐞 bug Something isn't working label Feb 7, 2024
@Alfredoes234
Copy link
Author

Output message for building app

node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@rsbuild/shared/compiled/autoprefixer/lib/autoprefixer.d.ts:2:23 - error TS2307: Cannot find module '../browserslist' or its corresponding type declarations.

2 import { Stats } from '../browserslist'
                        ~~~~~~~~~~~~~~~~~

node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@rsbuild/shared/compiled/fs-extra/index.d.ts:5:34 - error TS2307: Cannot find module './jsonfile/utils' or its corresponding type declarations.

5 import { StringifyOptions } from './jsonfile/utils';
                                   ~~~~~~~~~~~~~~~~~~

node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@rsbuild/shared/compiled/fs-extra/index.d.ts:994:86 - error TS2307: Cannot find module 'jsonfile' or its corresponding type declarations. 

994 export { JFReadOptions as JsonReadOptions, JFWriteOptions as JsonWriteOptions } from "jsonfile";
                                                                                         ~~~~~~~~~~

node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@rsbuild/shared/compiled/http-proxy-middleware/types/index.d.ts:3:15 - error TS2307: Cannot find module './handlers' or its corresponding 
type declarations.

3 export * from './handlers';
                ~~~~~~~~~~~~

node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@rsbuild/shared/compiled/http-proxy-middleware/types/types.d.ts:6:31 - error TS2307: Cannot find module 'express' or its corresponding type declarations.

6 import type * as express from 'express';
                                ~~~~~~~~~

node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@rsbuild/shared/compiled/sass-loader/interfaces.d.ts:3:26 - error TS2307: Cannot find module '../webpack' or its corresponding type declarations.

3 import * as Webpack from '../webpack';
                           ~~~~~~~~~~~~

node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@rsbuild/shared/compiled/sass/types/value/argument_list.d.ts:1:32 - error TS2307: Cannot find module 'immutable' or its corresponding type declarations.

1 import {List, OrderedMap} from 'immutable';
                                 ~~~~~~~~~~~

node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@rsbuild/shared/compiled/sass/types/value/calculation.d.ts:1:33 - error TS2307: Cannot find module 'immutable' or its corresponding type declarations.

1 import {List, ValueObject} from 'immutable';
                                  ~~~~~~~~~~~

node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@rsbuild/shared/compiled/sass/types/value/index.d.ts:1:33 - error TS2307: Cannot find module 'immutable' or its corresponding type declarations.

1 import {List, ValueObject} from 'immutable';
                                  ~~~~~~~~~~~

node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@rsbuild/shared/compiled/sass/types/value/list.d.ts:1:20 - error TS2307: Cannot find module 'immutable' or its corresponding type declarations.

1 import {List} from 'immutable';
                     ~~~~~~~~~~~

node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@rsbuild/shared/compiled/sass/types/value/map.d.ts:1:26 - error TS2307: Cannot find module 'immutable' or its corresponding type declarations.

1 import {OrderedMap} from 'immutable';
                           ~~~~~~~~~~~

node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@rsbuild/shared/compiled/sass/types/value/number.d.ts:1:20 - error TS2307: Cannot find module 'immutable' or its corresponding type declarations.

1 import {List} from 'immutable';
                     ~~~~~~~~~~~

node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@rsbuild/shared/compiled/webpack-bundle-analyzer/index.d.ts:5:86 - error TS2307: Cannot find module '../webpack' or its corresponding type declarations.

5 import { Compiler, Stats as WebpackStats, StatsOptions, WebpackPluginInstance } from '../webpack';
                                                                                       ~~~~~~~~~~~~

node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@rsbuild/shared/compiled/webpack-chain/types/index.d.ts:7:8 - error TS2307: Cannot find module 'webpack' or its corresponding type declarations.

7 } from 'webpack';
         ~~~~~~~~~

node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@rsbuild/shared/dist/config.d.ts:33:22 - error TS2307: Cannot find module 'terser' or its corresponding type declarations.

33     minifyJS: import("terser").MinifyOptions;
                        ~~~~~~~~

node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@rsbuild/shared/dist/types/plugin.d.ts:7:89 - error TS2307: Cannot find module 'webpack' or its corresponding type declarations.

7 import type { RuleSetRule, WebpackPluginInstance, Configuration as WebpackConfig } from 'webpack';
                                                                                          ~~~~~~~~~

node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@rsbuild/shared/dist/types/plugin.d.ts:12:28 - error TS2307: Cannot find module 'webpack' or its corresponding type declarations.

12     webpack: typeof import('webpack');
                              ~~~~~~~~~

node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@rsbuild/shared/dist/types/thirdParty.d.ts:5:31 - error TS2307: Cannot find module 'terser-webpack-plugin' or its corresponding type declarations.

5 import type TerserPlugin from 'terser-webpack-plugin';
                                ~~~~~~~~~~~~~~~~~~~~~~~

node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@rsbuild/shared/dist/types/thirdParty.d.ts:7:53 - error TS2307: Cannot find module 'webpack' or its corresponding type declarations.      

7 import type { Configuration as WebpackConfig } from 'webpack';
                                                      ~~~~~~~~~

node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@rsbuild/shared/dist/types/thirdParty.d.ts:8:113 - error TS2307: Cannot find module 'mini-css-extract-plugin' or its corresponding type declarations.

8 import type { PluginOptions as MiniCSSExtractPluginOptions, LoaderOptions as MiniCSSExtractLoaderOptions } from 'mini-css-extract-plugin';
                                                                                                                  ~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@rspack/core/dist/config/zod.d.ts:6:40 - error TS2307: Cannot find module 'webpack-dev-server' or its corresponding type declarations.        

6 import type * as webpackDevServer from "webpack-dev-server";
                                         ~~~~~~~~~~~~~~~~~~~~

node_modules/.pnpm/@[email protected][email protected]/node_modules/@solid-primitives/utils/dist/index/index.d.ts:6:54 - error TS2307: Cannot find module '../node_modules/solid-js/types/reactive/signal.js' or its corresponding type declarations.

6 export { ResolvedChildren, ResolvedJSXElement } from '../node_modules/solid-js/types/reactive/signal.js';
                                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/.pnpm/[email protected]/node_modules/html-rspack-plugin/typings.d.ts:2:39 - error TS2307: Cannot find module 'webpack' or its corresponding type declarations.

2 import { Compiler, Compilation } from "webpack";
                                        ~~~~~~~~~


Found 23 errors in 19 files.

Errors  Files
     1  node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@rsbuild/shared/compiled/autoprefixer/lib/autoprefixer.d.ts:2
     2  node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@rsbuild/shared/compiled/fs-extra/index.d.ts:5
     1  node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@rsbuild/shared/compiled/http-proxy-middleware/types/index.d.ts:3
     1  node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@rsbuild/shared/compiled/http-proxy-middleware/types/types.d.ts:6
     1  node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@rsbuild/shared/compiled/sass-loader/interfaces.d.ts:3
     1  node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@rsbuild/shared/compiled/sass/types/value/argument_list.d.ts:1
     1  node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@rsbuild/shared/compiled/sass/types/value/calculation.d.ts:1
     1  node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@rsbuild/shared/compiled/sass/types/value/index.d.ts:1
     1  node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@rsbuild/shared/compiled/sass/types/value/list.d.ts:1
     1  node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@rsbuild/shared/compiled/sass/types/value/map.d.ts:1
     1  node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@rsbuild/shared/compiled/sass/types/value/number.d.ts:1
     1  node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@rsbuild/shared/compiled/webpack-bundle-analyzer/index.d.ts:5
     1  node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@rsbuild/shared/compiled/webpack-chain/types/index.d.ts:7
     1  node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@rsbuild/shared/dist/config.d.ts:33
     2  node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@rsbuild/shared/dist/types/plugin.d.ts:7
     3  node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@rsbuild/shared/dist/types/thirdParty.d.ts:5
     1  node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@rspack/core/dist/config/zod.d.ts:6
     1  node_modules/.pnpm/@[email protected][email protected]/node_modules/@solid-primitives/utils/dist/index/index.d.ts:6
     1  node_modules/.pnpm/[email protected]/node_modules/html-rspack-plugin/typings.d.ts:2
 ELIFECYCLE  Command failed with exit code 2.

@xc2
Copy link
Collaborator

xc2 commented Feb 7, 2024

for type error: would you please try excluding node_modules from your tsconfig

btw, you haven't pushed rsbuild related changes to your repo

@Alfredoes234
Copy link
Author

for type error: would you please try excluding node_modules from your tsconfig

btw, you haven't pushed rsbuild related changes to your repo

I will update it when I get back home

@Alfredoes234
Copy link
Author

Updated It @xc2

@xc2
Copy link
Collaborator

xc2 commented Feb 8, 2024

related solidjs/solid-refresh#58

solid-refresh 0.7.3 and 0.7.4 are broken. please try locking solid-refresh to 0.7.2 with package managers overrides or resolutions feature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants