You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
websiteDescription: `One of your files is traying to import a dependency using npm, but it hasn't been installed`,
513
+
},
514
+
IMPORTED_NPM_DEPENDENCY_THAT_USES_EXPORTS: {
515
+
number: 705,
516
+
messageTemplate:
517
+
'The import "{importPath}" from "{from}" is trying to use an npm dependency that uses pacakge#exports, which is not supported by Hardhat.',
518
+
websiteTitle:
519
+
"Using a npm solidity dependency with pacakge.json#exports is not supported",
520
+
websiteDescription: `One of your files is traying to import a dependency using npm, but it uses pacakge.json#exports, which Hardhat doesn't support`,
521
+
},
522
+
USER_REMAPPING_WITH_NPM_CONTEXT: {
523
+
number: 706,
524
+
messageTemplate:
525
+
'The remapping "{remapping}" has a context starting with "npm/", which is forbidden. Hardhat doesn\'t allow changing the behaviour of npm package\'s imports.',
526
+
websiteTitle: "Remapping imports in npm packages is not allowed",
527
+
websiteDescription: `This error happened because you are trying to change how the imports within an npm package, which is not allowed.
528
+
529
+
While Hardhat supports user-defined remappings, it doesn't support remapping the behavior of npm packages to ensure that everything what's imported via npm uses the same npm resolution logic.`,
530
+
},
531
+
REMAPPING_WITH_INVALID_SYNTAX: {
532
+
number: 707,
533
+
messageTemplate: `The remapping "{remapping}" is invalid.`,
534
+
websiteTitle: "Invalid remapping",
535
+
websiteDescription: `You are trying to set a user remapping, but it's syntax is invalid.
536
+
537
+
Please double check your remmpaings' syntax.`,
538
+
},
539
+
REMAPPING_TO_UNINSTALLED_PACKAGE: {
540
+
number: 708,
541
+
messageTemplate: `The remapping "{remapping}" is trying to use the npm package "{package}", which is not installed`,
542
+
websiteTitle: "Remapping into an uninstaleld npm package",
543
+
websiteDescription: `You are trying to set a user remapping that uses an npm pacakge as target, but it's not installed.
544
+
545
+
Please make sure to install the package or fix the remapping.`,
546
+
},
547
+
REMAPPING_TO_PACKAGE_USING_EXPORTS: {
548
+
number: 709,
549
+
messageTemplate: `The remapping "{remapping}" is using the npm package "{package}", which uses pacakge.json#exports, which is not supported by Hardhat`,
550
+
websiteTitle:
551
+
"Remapping into an npm package that uses pacakge.json#exports",
552
+
websiteDescription: `You are trying to set a user remapping that uses an npm pacakge as target, but it uses pacakge.json#exports, which Hardhat doesn't support.`,
553
+
},
554
+
REMAPPING_NPM_PACKAGE_AS_MONOREPO: {
555
+
number: 710,
556
+
messageTemplate: `The remapping "{remapping}" targets the npm pacakge "{pacakge}" as if it were part of this repository, but version "{version}" is installed instead`,
557
+
websiteTitle:
558
+
"Remapping into a monorepo package but found an npm package instead",
559
+
websiteDescription: `You are trying to set a remapping setting a monorepo package as target, but Hardhat found the pacakge to be installed from the npm regristry instead.`,
560
+
},
561
+
REMAPPING_HARDHAT_PROJECT_AS_MONOREPO_PACKAGE: {
562
+
number: 711,
563
+
messageTemplate: `The remapping "{remapping}" is trying to set the npm package "{package}" as target, but that's the project is the Hardhat project, so it shouldn't be remapped through npm/, but as internal project remappings.`,
564
+
websiteTitle: `Remapping into the project using npm`,
565
+
websiteDescription: `You are trying to set a remapping whose target uses the npm/ syntax, but is within your Hardhat project.
566
+
567
+
Please don't use npm/... as target, but use normal internal project remapping istead.`,
568
+
},
569
+
REMAPPING_INCORRECT_VERSION: {
570
+
number: 712,
571
+
messageTemplate: `The remapping "{remapping}" is trying to set the npm package "{package}" version "{expectedVersion}" as target, but found version "{actualVersion}" instead.`,
572
+
websiteTitle: `Remapping into incorrect npm package version`,
573
+
websiteDescription: `You are trying to set a remapping into an npm package, but the version that you are using is not the currently installed one.
574
+
575
+
Please change your remapping to match the installed version, or installed the correct one.`,
576
+
},
577
+
INVALID_NPM_IMPORT: {
578
+
number: 713,
579
+
messageTemplate: `The import "{imporPath}" in "{from}" is treated as an npm import as it's first directory doesn't exist in your project, but it's syntax is not that of a valid npm import either.`,
580
+
websiteTitle: `Invalid npm import`,
581
+
websiteDescription: `You are trying to import a file that is not a valid npm import. Please double check that you are using the correct syntax.`,
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
0 commit comments