question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update module import and export to remove DEP0148 depreciation warning

See original GitHub issue

When building the repo in node version 16 the following warning occurs:

babelHelpers: 'bundled' option was used by default. It is recommended to configure this option explicitly, read more here: https://github.com/rollup/plugins/tree/master/packages/babel#babelhelpers
(node:37395) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /Users/charlottevermandel/MeiliSearch/meilisearch-js/node_modules/rollup-plugin-typescript2/node_modules/tslib/package.json.
Update this package.json to use a subpath pattern like "./*".
(Use `node --trace-deprecation ...` to show where the warning was created)

The warning raises the Depreciation warning with the id DEP0148.

Sub-patterns should be used instead.

related #913

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Rishabhraghwendra18commented, Oct 11, 2021

ok… so I have to install node version 16 too

0reactions
bidoubiwacommented, Oct 13, 2021

Hello @Rishabhraghwendra18, I looked at the problem and it seems to come from tslib like you said. We cannot directly change its package.json. We need to wait for them to update theirs. A pr is already open in their repository to fix the problem. I’m sorry this means there is indeed nothing to fix in this repo. I’m closing the issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues - GitHub
(node:29624) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at D:\js\project\web\ ...
Read more >
Ask Question - Stack Overflow
Solution: Go to defined location C:\<xampp>\htdocs\<projName>\node_modules\tslib\package.json . At exports field - replace this "./": ".
Read more >
Deprecated APIs | Node.js v19.3.0 Documentation
This means there will not be deprecation warnings for Buffer() usage in dependencies. ... The v8/* modules do not have any exports, and...
Read more >
Resolve the "Export EXPORT_NAME cannot be updated as it ...
You get this error when one or more stacks are importing an exported output value from the stack that you want to update...
Read more >
Migrating projects using file exports - GitLab Docs
In Import project from, select GitLab export. Enter your project name and URL. Then select the file you exported previously. Select Import project...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found