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

Upgrade to Userscripter 3.0.0 #265

Merged
merged 1 commit into from
Jul 17, 2024
Merged

Upgrade to Userscripter 3.0.0 #265

merged 1 commit into from
Jul 17, 2024

Conversation

SimonAlling
Copy link
Owner

@SimonAlling SimonAlling commented Jul 17, 2024

Today, an import like

import * as build from "userscripter/build";

void build;

in the run-time code (everything in src/) makes npm run build fail like this:

ERROR in ./src/main.ts
Module build failed (from ./node_modules/restrict-imports-loader/dist/index.js):
Error: "userscripter/build" and its submodules cannot be imported in the source directory ('src'). Please remove these imports:

  • "userscripter/build", imported on line 3:

        import * as build from "userscripter/build";

With Userscripter 3.0.0, it instead fails with an unintelligible wall of text containing, among others, these errors:

  • Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
  • Critical dependency: the request of a dependency is an expression
  • Module not found: Error: Can't resolve 'fsevents' in '/home/alling/dev/better-sweclockers/node_modules/chokidar/lib'
  • System.import() is deprecated and will be removed soon. Use import() instead.
  • require.extensions is not supported by webpack. Use a loader instead.
  • Can't import the named export 'RawSource' from non EcmaScript module (only default export is available)

That in itself is of course a downgrade, but I want to upgrade Userscripter as new versions are released unless there is a compelling reason not to.

@SimonAlling SimonAlling merged commit 96d67ee into master Jul 17, 2024
1 check passed
@SimonAlling SimonAlling deleted the userscripter-3.0.0 branch July 17, 2024 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant