The following packages did not export their `package.json` file
Closed this issue ยท 7 comments
jet10000 commented
[rollup-plugin-svelte] The following packages did not export their `package.json` file so we could not check the "svelte" field. If you had difficulties importing svelte components from a package, then please contact the author and ask them to export the package.json file.
- svelte-websocket-store
LiveReload enabled
created public/build/bundle.js in 321ms
[2021-02-13 06:25:39] waiting for changes...
[rollup-plugin-svelte] The following packages did not export their `package.json` file so we could not check the "svelte" field. If you had difficulties importing svelte components from a package, then please contact the author and ask them to export the package.json file.
- svelte-websocket-store
LiveReload enabled
(!) Plugin node-resolve: Could not resolve import "svelte-websocket-store/src/index.mjs" in /Users/test/github/svelte-huobi-client-app/src/App.svelte using exports defined in /Users/test/github/svelte-huobi-client-app/node_modules/svelte-websocket-store/package.json.
(!) Unresolved dependencies
https://rollupjs.org/guide/en/#warning-treating-module-as-external-dependency
svelte-websocket-store/src/index.mjs (imported by src/App.svelte)
(!) Missing global variable name
Use output.globals to specify browser global variable names corresponding to external modules
svelte-websocket-store/src/index.mjs (guessing 'websocketStore')
created public/build/bundle.js in 343ms
arlac77 commented
svelte-websocket-store is not really a svelte component; index.svelte should not be in package.json as there is nothing inside
PaulMaly commented
@arlac77 but it's in there. after npm install
we've got this package.json actually:
{
"_from": "svelte-websocket-store",
"_id": "svelte-websocket-store@1.1.2",
"_inBundle": false,
"_integrity": "sha512-E6rleZDGszm3uJXWc5da7dCy1X151nvoL19LXeTfJE5o0m+TdZGNH8q00HzGOdWkYlj+zF/1hYP1IsL9zCf1rA==",
"_location": "/svelte-websocket-store",
"_phantomChildren": {},
"_requested": {
"type": "tag",
"registry": true,
"raw": "svelte-websocket-store",
"name": "svelte-websocket-store",
"escapedName": "svelte-websocket-store",
"rawSpec": "",
"saveSpec": null,
"fetchSpec": "latest"
},
"_requiredBy": [
"#USER",
"/"
],
"_resolved": "https://registry.npmjs.org/svelte-websocket-store/-/svelte-websocket-store-1.1.2.tgz",
"_shasum": "abcca06e4bcd3f78238ec00fb1d3a86642680e1a",
"_spec": "svelte-websocket-store",
"_where": "C:\\home\\pi\\hl\\web",
"bugs": {
"url": "https://github.com/arlac77/svelte-websocket-store/issues"
},
"bundleDependencies": false,
"contributors": [
{
"name": "Markus Felten",
"email": "markus.felten@gmx.de"
}
],
"deprecated": false,
"description": "svelte store with a websocket backend",
"devDependencies": {
"@rollup/plugin-node-resolve": "^11.1.1",
"@rollup/plugin-virtual": "^2.0.3",
"ava": "^3.15.0",
"c8": "^7.5.0",
"documentation": "github:arlac77/documentation",
"postcss": "^8.2.5",
"postcss-import": "^14.0.0",
"rollup": "^2.38.5",
"rollup-plugin-dev": "^1.1.3",
"rollup-plugin-postcss": "^4.0.0",
"rollup-plugin-svelte": "^7.1.0",
"semantic-release": "^17.3.8",
"svelte": "^3.32.2",
"testcafe": "^1.10.1",
"ws": "^7.4.3"
},
"exports": {
".": "./src/index.mjs"
},
"homepage": "https://github.com/arlac77/svelte-websocket-store#readme",
"keywords": [
"component",
"store",
"svelte",
"web",
"websocket"
],
"license": "BSD-2-Clause",
"name": "svelte-websocket-store",
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/arlac77/svelte-websocket-store.git"
},
"scripts": {
"build": "rollup -c tests/app/rollup.config.mjs",
"cover": "c8 -x 'tests/**/*' --temp-directory build/tmp ava --timeout 2m tests/*.mjs && c8 report -r lcov -o build/coverage --temp-directory build/tmp",
"docs": "documentation readme --section=API ./src/**/*.mjs",
"lint": "npm run lint:docs",
"lint:docs": "documentation lint ./src/**/*.mjs",
"start": "rollup -c tests/app/rollup.config.mjs -w",
"test": "npm run test:ava && npm run test:cafe",
"test:ava": "ava --timeout 2m tests/*.mjs",
"test:cafe": "testcafe $BROWSER:headless tests/cafe/*.js -s build/test --app-init-delay 1000 --app \"rollup -c tests/app/rollup.config.mjs -w\""
},
"svelte": "./src/index.svelte",
"template": {
"properties": {
"rollup": {
"config": "tests/app/rollup.config.mjs"
},
"web-app": {
"publish": "tests/app/public/"
},
"netlifly": {
"site": {
"uuid": "aa2f608c-1245-49c7-a307-d05d26dd7888"
}
}
},
"inheritFrom": [
"arlac77/template-arlac77-github",
"arlac77/template-ava-coverage",
"arlac77/template-documentation",
"arlac77/template-netlify",
"arlac77/template-svelte",
"arlac77/template-testcafe",
"arlac77/template-web-component"
]
},
"version": "1.1.2"
}
Please, look at this line: "svelte": "./src/index.svelte",
arlac77 commented
the change has not yet been released
Aleksandr66 commented
Real problem ver1.1.3 no problem ver 1.1.0
(!) Missing global variable name
Use output.globals to specify browser global variable names corresponding to external modules
svelte-websocket-store (guessing 'websocketStore')
arlac77 commented
@Aleksandr66 what environment You are using ?
Aleksandr66 commented
Vscode
github-actions commented
๐ This issue has been resolved in version 1.1.4 ๐
The release is available on:
Your semantic-release bot ๐ฆ๐