polkadot-js / apps

Basic Polkadot/Substrate UI for interacting with a Polkadot and Substrate node. This is the main user-facing application, allowing access to all features available on Substrate chains.
https://dotapps.io
Apache License 2.0
1.75k stars 1.54k forks source link

getting some errors after `yarn run start` #7145

Closed decentration closed 2 years ago

decentration commented 2 years ago

hey im getting these errors on compile:

Compiled with problems:

ERROR in ../../node_modules/@polkadot/apps-config/api/spec/crab.js 3:0-65

Module not found: Error: Can't resolve '@darwinia/types/mix' in '/Users/ramseyajram/apps/node_modules/@polkadot/apps-config/api/spec'
Did you mean 'index.js'?
BREAKING CHANGE: The request '@darwinia/types/mix' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.

ERROR in ../../node_modules/@polkadot/apps-config/api/spec/darwinia.js 3:0-65

Module not found: Error: Can't resolve '@darwinia/types/mix' in '/Users/ramseyajram/apps/node_modules/@polkadot/apps-config/api/spec'
Did you mean 'index.js'?
BREAKING CHANGE: The request '@darwinia/types/mix' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.

ERROR in ../../node_modules/@polkadot/apps-config/api/spec/opal.js 3:0-55

Module not found: Error: Can't resolve '@unique-nft/types/definitions' in '/Users/ramseyajram/apps/node_modules/@polkadot/apps-config/api/spec'
Did you mean 'definitions.js'?
BREAKING CHANGE: The request '@unique-nft/types/definitions' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.

ERROR in ../../node_modules/@polkadot/apps-config/api/spec/opportunity.js 3:0-70

Module not found: Error: Can't resolve '@digitalnative/type-definitions/opportunity' in '/Users/ramseyajram/apps/node_modules/@polkadot/apps-config/api/spec'
Did you mean 'index.js'?
BREAKING CHANGE: The request '@digitalnative/type-definitions/opportunity' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.

ERROR in ../../node_modules/@polkadot/apps-config/api/spec/pangolin.js 3:0-65

Module not found: Error: Can't resolve '@darwinia/types/mix' in '/Users/ramseyajram/apps/node_modules/@polkadot/apps-config/api/spec'
Did you mean 'index.js'?
BREAKING CHANGE: The request '@darwinia/types/mix' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.

ERROR in ../../node_modules/@polkadot/apps-config/api/spec/pangoro.js 3:0-65

Module not found: Error: Can't resolve '@darwinia/types/mix' in '/Users/ramseyajram/apps/node_modules/@polkadot/apps-config/api/spec'
Did you mean 'index.js'?
BREAKING CHANGE: The request '@darwinia/types/mix' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.

ERROR in ../../node_modules/@polkadot/apps-config/api/spec/quartz.js 3:0-55

Module not found: Error: Can't resolve '@unique-nft/types/definitions' in '/Users/ramseyajram/apps/node_modules/@polkadot/apps-config/api/spec'
Did you mean 'definitions.js'?
BREAKING CHANGE: The request '@unique-nft/types/definitions' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.

ERROR in ../../node_modules/@polkadot/apps-config/api/spec/standard.js 3:0-67

Module not found: Error: Can't resolve '@digitalnative/type-definitions/standard' in '/Users/ramseyajram/apps/node_modules/@polkadot/apps-config/api/spec'
Did you mean 'index.js'?
BREAKING CHANGE: The request '@digitalnative/type-definitions/standard' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.

ERROR in ../../node_modules/@polkadot/apps-config/api/spec/subsocial.js 6:0-86

Module not found: Error: Can't resolve '@subsocial/types/substrate/interfaces/subsocial/definitions' in '/Users/ramseyajram/apps/node_modules/@polkadot/apps-config/api/spec'
Did you mean 'definitions.js'?
BREAKING CHANGE: The request '@subsocial/types/substrate/interfaces/subsocial/definitions' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
decentration commented 2 years ago

my yarn -v 3.2.0

node -v v17.7.1

jacogr commented 2 years ago

The CI process & myself use Node LTS only. So there could be issues with the current 17.x releases.

decentration commented 2 years ago

fixed:

It was package.json. I previously deleted package.json, caused above error, so then un-deleted it. Now works with above versions.

polkadot-js-bot commented 2 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query.