添加链接
注册
登录
link管理
链接快照平台
输入网页链接,自动生成快照
标签化管理网页链接
相关文章推荐
兴奋的烤红薯
·
python在屏幕上绘制方框 - CSDN文库
·
3 周前
·
豪爽的肉夹馍
·
dadda-translate-crx/sr ...
·
3 月前
·
干练的硬币
·
为什么服务的秘钥验证失败? | Bob
·
4 月前
·
闯红灯的爆米花
·
港青南京实习感受沧桑巨变 ...
·
5 月前
·
玩足球的核桃
·
【Docker】容器获取宿主机IP和MAC_ ...
·
12 月前
·
link管理
›
'import' and 'export' may only appear at the top level
https://lightrun.com/answers/webpack-contrib-imports-loader-import-and-export-may-only-appear-at-the-top-level-
帅气的甜瓜
1 年前
</noscript><div id="___gatsby"><div style="outline:none" tabindex="-1" id="gatsby-focus-wrapper"><header class="TemplateHeader-module--header--f6398 "><div class="Container-module--largeContainer--94cb8"><div class="TemplateHeader-module--wrapper--8e3ea"><a href="https://www.lightrun.com"><img src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIwIiBoZWlnaHQ9IjM4IiB2aWV3Qm94PSIwIDAgMjIwIDM4IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNMTA2LjE4MSAyLjg3MDI3QzEwNS42MyAyLjg4MzUxIDEwNS4wOTYgMy4wNTczMiAxMDQuNjQ1IDMuMzY5OTRDMTA0LjE5NCAzLjY4MjU1IDEwMy44NDYgNC4xMjAwNiAxMDMuNjQ1IDQuNjI3NjVDMTAzLjQ0NCA1LjEzNTIzIDEwMy4zOTggNS42OTAzMSAxMDMuNTE0IDYuMjIzMzNDMTAzLjYzIDYuNzU2MzYgMTAzLjkwMyA3LjI0MzYxIDEwNC4yOTcgNy42MjQwNUMxMDQuNjkyIDguMDA0NDkgMTA1LjE5MSA4LjI2MTE4IDEwNS43MzIgOC4zNjE5N0MxMDYuMjczIDguNDYyNzYgMTA2LjgzMiA4LjQwMzE2IDEwNy4zMzkgOC4xOTA2NEMx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S4yMTk2IDIxNC40NjcgMTUuNTgzOCAyMTQuNjA3IDE1Ljk4MDhDMjE0Ljc0NyAxNi4zNzc3IDIxNC44MDQgMTYuNzk5IDIxNC43NzMgMTcuMjE4NVYyOC4zNzNIMjE5LjY1NFYxNy43OTY4QzIxOS42NTQgMTMuOTAzOCAyMTguNTI4IDkuNTkzOTcgMjEzLjI1MyA5LjU5Mzk3IiBmaWxsPSIjMUIxQTE5Ii8+CjxwYXRoIGQ9Ik05Mi4yNDMyIDMuODUyMDVIODcuMjUzNFYyOC4zNzk4SDEwMC4zMDhWMjMuOTI4N0g5Mi4yNDMyVjMuODUyMDVaIiBmaWxsPSIjMUIxQTE5Ii8+CjxwYXRoIGQ9Ik03Mi42NDQzIDAuNDkwMjM0TDYxLjEzNzQgNC44ODA3NUw0MC44NjYyIDQuNzI2MTFMMTQuNjgxOSAxMS45MjcxTDAuMTEzMjgxIDEwLjY4MzJMMTQuODEwOSAxNS43MTI1TDI1LjU4NDcgMTMuNzYyNkwzNC45ODcxIDE1LjQ5MDZMMzAuODY2MyAyMC4zMDQ3TDQ1LjQ0ODYgMjcuNjMzNEw0MC43NDQgMjEuMTg1NUw1NC43OTY3IDEwLjIyNkw0Ni45NDg5IDIyLjM2MjFMNTIuNDQxIDIyLjU5NzVMNDMuMDg2MSAzNy40OTAyTDY0LjgwMzMgMTcuNzgzM0w2MC45MTM0IDE3LjcwMjdMNjkuMTYxNyAxMS45OTQzTDc3LjI1MzkgMTIuMDQ4MUw3OC43NzQ2IDguNDU3NzFMNzYuMDMxOSA2LjA1NzM4TDc1LjMzMjcgNC4yODkwN0w3Mi42NDQzIDMuMDU4NjVWMC40OTAyMzRaIiBmaWxsPSIjMUIxQTE5Ii8+Cjwvc3ZnPgo=" alt="Lightrun" class="TemplateHeader-module--logoImg--5e9c4"/></a><nav class="TemplateHeader-module--navWrapper--b3c39"><div class="TemplateHeader-module--navList--a14d9"><div class="TemplateHeader-module--btnMenu--375a2"><button class="TemplateHeader-module--item--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Mzc3MDg1IDExLjIyOTIgMC40MTkxNTkgMTEuMjgyMiAwLjQ3MTg5NUwxMS4zMzMyIDAuNTIyMjU2QzExLjQyOTggMC42MTkwMDQgMTEuNDgzNCAwLjc0NTY0IDExLjQ4MzQgMC44NzcwNzJDMTEuNDgzNCAxLjAwODUgMTEuNDI5OCAxLjEzNTE0IDExLjMzMzIgMS4yMzE4OUw2LjM5ODU1IDYuMTQyMDhDNi4zNDU1OSA2LjE5NDQ2IDYuMjgxMjYgNi4yMzU5OSA2LjIwOTc0IDYuMjYzOTlDNi4xMzgyMiA2LjI5MTk5IDYuMDYxMSA2LjMwNTgzIDUuOTgzNCA2LjMwNDYxWiIgZmlsbD0iIzFCMUExOSIvPgo8L3N2Zz4K" alt="arrow_down"/></button><div class="SharedMenu-module--wrapperContainer--6e38e "><div class="SharedMenu-module--wrapper--49c2c"><p class="titleGradient">Dev Observability</p><div class="SharedMenu-module--menuList--d425c"><a href="https://lightrun.com/developer-observability/" class="SharedMenu-module--link--ad046">What is Developer Observability?</a><a href="https://lightrun.com/why-lightrun/" class="SharedMenu-module--link--ad046">Why Lightrun?</a><a href="https://lightrun.com/architecture/" class="SharedMenu-module--link--ad046">Lightrun Architecture</a><a href="https://lightrun.com/sdk/" class="SharedMenu-module--link--ad046"><span>The Lightrun SDK</span><sup>TM</sup></a><a href="https://lightrun.com/plugin/" class="SharedMenu-module--link--ad046">The Lightrun IDE Plugin</a><a href="https://lightrun.com/security/" class="SharedMenu-module--link--ad046">Security</a><a href="https://lightrun.com/comparisons/" class="SharedMenu-module--link--ad046">Comparisons</a><a href="https://lightrun.com/integrations/" class="SharedMenu-module--link--ad046">Integrations</a></div><div class="SharedMenu-module--arrow--d0e9b "/></div></div></div><div class="TemplateHeader-module--btnMenu--375a2"><button class="TemplateHeader-module--item--c5b2d">Product<!-- --> <img src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iNyIgdmlld0JveD0iMCAwIDEyIDciIGZpbGw9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NDgzNCAwLjc0NTY0IDExLjQ4MzQgMC44NzcwNzJDMTEuNDgzNCAxLjAwODUgMTEuNDI5OCAxLjEzNTE0IDExLjMzMzIgMS4yMzE4OUw2LjM5ODU1IDYuMTQyMDhDNi4zNDU1OSA2LjE5NDQ2IDYuMjgxMjYgNi4yMzU5OSA2LjIwOTc0IDYuMjYzOTlDNi4xMzgyMiA2LjI5MTk5IDYuMDYxMSA2LjMwNTgzIDUuOTgzNCA2LjMwNDYxWiIgZmlsbD0iIzFCMUExOSIvPgo8L3N2Zz4K" alt="arrow_down"/></button><div class="SharedMenu-module--wrapperContainer--6e38e SharedMenu-module--expandedMenuContainer--4c975"><div class="SharedMenu-module--wrapper--49c2c"><div class="SharedMenu-module--productWrapper--40db0"><div><div class="titleGradient">Architectures</div><div class="SharedMenu-module--mainBlockMenu--064a3"><div class="SharedMenu-module--menuBlock--9a914"><div class="SharedMenu-module--subTitleList--11ca1">Deployment Patterns</div><div class="SharedMenu-module--menuList--d425c"><a class="SharedMenu-module--link--ad046" href="https://lightrun.com/kubernetes-troubleshooting/">Kubernetes Debugging</a><a class="SharedMenu-module--link--ad046" href="https://lightrun.com/serverless-debugging/">Serverless Debugging</a><a class="SharedMenu-module--link--ad046" href="https://lightrun.com/feature-flag-validation/">Feature Flag Debugging</a></div></div><div class="SharedMenu-module--menuBlock--9a914"><div class="SharedMenu-module--subTitleList--11ca1">Environments</div><div class="SharedMenu-module--menuList--d425c"><a class="SharedMenu-module--link--ad046" href="https://lightrun.com/enviroments/dev-qa-staging/">Dev/QA/Staging</a><a class="SharedMenu-module--link--ad046" href="https://lightrun.com/enviroments/ci-cd-pipelines/">CI/CD</a><a class="SharedMenu-module--link--ad046" href="https://lightrun.com/enviroments/production/">Production</a></div></div></div></div><div><div class="titleGradient">Roles</div><div class="SharedMenu-module--mainBlockMenu--064a3"><div><a class="SharedMenu-module--link--ad046" href="https://lightrun.com/roles/backend-developer/">Backend Developer</a><a class="SharedMenu-module--link--ad046" href="https://lightrun.com/roles/devops-sre/">DevOps Engineer/SRE</a><a class="SharedMenu-module--link--ad046" href="https://lightrun.com/roles/engineering-leader/">Engineering Leader</a></div></div></div><div><div class="titleGradient">Benefits</div><div class="SharedMenu-module--mainBlockMenu--064a3"><div><a class="SharedMenu-module--link--ad046" href="https://lightrun.com/use-cases/reduce-mttr/">Reduce MTTR</a><a class="SharedMenu-module--link--ad046" href="https://lightrun.com/use-cases/improve-developer-productivity/">Improve Dev Productivity</a><a class="SharedMenu-module--link--ad046" href="https://lightrun.com/use-cases/optimize-logging-costs/">Optimize Logging Costs</a><a class="SharedMenu-module--link--ad046" href="https://lightrun.com/use-cases/reduce-time-to-market/">Reduce Time to Market</a><a class="SharedMenu-module--link--ad046" href="https://lightrun.com/use-cases/improve-dora-metrics/">Improove DORA metrics</a></div></div></div><div><div class="titleGradient">Features</div><div class="SharedMenu-module--mainBlockMenu--064a3"><div><a class="SharedMenu-module--link--ad046" href="https://lightrun.com/logs/">Dynamic Logs</a><a class="SharedMenu-module--link--ad046" href="https://lightrun.com/metrics/">Zero-config Metrics</a><a class="SharedMenu-module--link--ad046" href="https://lightrun.com/snapshots/">Snapshots (Virtual Breakpoints)</a><a class="SharedMenu-module--link--ad046" href="https://lightrun.com/integrations/#">Integrations</a><a class="SharedMenu-module--link--ad046" href="https://lightrun.com/integrations/#">Comparisons</a></div></div></div><div class="SharedMenu-module--watchNowBar--38120"><div class="WatchNow-module--watchNow--0a727 SharedMenu-module--watchBarPanel--43c6e"><span class="titleGradient WatchNow-module--newTitle--646e1">NEW!</span><span class="WatchNow-module--description--bb7f0">Watch our log cost reduction masterclass with Google, Shopify and the CNCF!<a href="https://lightrun.com/resources/the-hidden-cost-of-overlogging/" class="WatchNow-module--watchNowLink--22d33">Watch Now></a></span></div></div></div><div class="SharedMenu-module--arrow--d0e9b SharedMenu-module--expandedMenuArrow--4fdac"/></div></div></div><a href="https://lightrun.com/pricing" class="TemplateHeader-module--item--c5b2d">Pricing</a><a href="https://docs.lightrun.com/" class="TemplateHeader-module--item--c5b2d">Docs</a><div class="TemplateHeader-module--btnMenu--375a2"><button class="TemplateHeader-module--item--c5b2d">Resources<!-- --> <img src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iNyIgdmlld0JveD0iMCAwIDEyIDciIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik01Ljk4MzQgNi4zMDQ2MUM1LjkwNTUxIDYuMzA1ODUgNS44MjgyIDYuMjkyMDIgNS43NTY0NyA2LjI2NDAzQzUuNjg0NzUgNi4yMzYwMyA1LjYyMDIgNi4xOTQ0OSA1LjU2NyA2LjE0MjA4TDAuNjMzNjI0IDEuMjMxODlDMC41MzcwMTUgMS4xMzUxNCAwLjQ4MzM5OCAxLjAwODUgMC40ODMzOTggMC44NzcwNzJDMC40ODMzOTggMC43NDU2NCAwLjUzNzAxNSAwLjYxOTAwNCAwLjYzMzYyNCAwLjUyMjI1NkwwLjY4NDU4NiAwLjQ3MTg5NUMwLjczNzY2MSAwLjQxODEwOCAwLjgwMjU5NiAwLjM3NTM3NiAwLjg3NTA0OSAwLjM0NjU1OEMwLjk0NzUwMSAwLjMxNzczOSAxLjAyNTggMC4zMDM0OTggMS4xMDQ3MSAwLjMwNDc4OEMxLjE4MiAwLjMwNDUwNiAxLjI1ODQ5IDAuMzE5MjQ1IDEuMzI5MTcgMC4zNDgwNEMxLjM5OTg1IDAuMzc2ODM1IDEuNDYzMTQgMC40MTkwMzkgMS41MTQ4OSAwLjQ3MTg5NUw1Ljk4OTYxIDQuOTAzNjZMMTAuNDUwNyAwLjQ3MTg5NUMxMC41MDM3IDAuNDE5MTU5IDEwLjU2OCAwLjM3NzA4NSAxMC42Mzk2IDAuMzQ4MzEyQzEwLjcxMTEgMC4zMTk1NCAxMC43ODg0IDAuMzA0Njg4IDEwLjg2NjQgMC4zMDQ2ODhDMTAuOTQ0NSAwLjMwNDY4NyAxMS4wMjE3IDAuMzE5NTQgMTEuMDkzMyAwLjM0ODMxMkMxMS4xNjQ4IDAuMzc3MDg1IDExLjIyOTIgMC40MTkxNTkgMTEuMjgyMiAwLjQ3MTg5NUwxMS4zMzMyIDAuNTIyMjU2QzExLjQyOTggMC42MTkwMDQgMTEuNDgzNCAwLjc0NTY0IDExLjQ4MzQgMC44NzcwNzJDMTEuNDgzNCAxLjAwODUgMTEuNDI5OCAxLjEzNTE0IDExLjMzMzIgMS4yMzE4OUw2LjM5ODU1IDYuMTQyMDhDNi4zNDU1OSA2LjE5NDQ2IDYuMjgxMjYgNi4yMzU5OSA2LjIwOTc0IDYuMjYzOTlDNi4xMzgyMiA2LjI5MTk5IDYuMDYxMSA2LjMwNTgzIDUuOTgzNCA2LjMwNDYxWiIgZmlsbD0iIzFCMUExOSIvPgo8L3N2Zz4K" alt="arrow_down"/></button><div class="SharedMenu-module--wrapperContainer--6e38e "><div class="SharedMenu-module--wrapper--49c2c"><p class="titleGradient">Resources</p><div class="SharedMenu-module--menuList--d425c"><a href="https://lightrun.com/categories_resources/case-studies/" class="SharedMenu-module--link--ad046">Case studies</a><a href="https://lightrun.com/categories_resources/data-sheets/" class="SharedMenu-module--link--ad046">Data Sheets</a><a href="https://lightrun.com/categories_resources/press/" class="SharedMenu-module--link--ad046">Press</a><a href="https://lightrun.com/categories_resources/webinars/" class="SharedMenu-module--link--ad046">Webinars</a></div><div class="SharedMenu-module--arrow--d0e9b "/></div></div></div><a href="https://lightrun.com/blog/" class="TemplateHeader-module--item--c5b2d">Blog</a><div class="TemplateHeader-module--btnMenu--375a2"><button class="TemplateHeader-module--item--c5b2d">Company<!-- --> <img src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iNyIgdmlld0JveD0iMCAwIDEyIDciIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik01Ljk4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0IDExLjMzMzIgMS4yMzE4OUw2LjM5ODU1IDYuMTQyMDhDNi4zNDU1OSA2LjE5NDQ2IDYuMjgxMjYgNi4yMzU5OSA2LjIwOTc0IDYuMjYzOTlDNi4xMzgyMiA2LjI5MTk5IDYuMDYxMSA2LjMwNTgzIDUuOTgzNCA2LjMwNDYxWiIgZmlsbD0iIzFCMUExOSIvPgo8L3N2Zz4K" alt="arrow_down"/></button><div class="SharedMenu-module--wrapperContainer--6e38e "><div class="SharedMenu-module--wrapper--49c2c"><p class="titleGradient">Company</p><div class="SharedMenu-module--menuList--d425c"><a href="https://www.linkedin.com/company/lightruntech/jobs/" class="SharedMenu-module--link--ad046">Careers</a><a href="https://go.lightrun.com/contact-us" class="SharedMenu-module--link--ad046">Contact Us</a></div><div class="SharedMenu-module--arrow--d0e9b "/></div></div></div><a href="https://playground.lightrun.com" class="TemplateHeader-module--item--c5b2d TemplateHeader-module--itemWordle--b9122"><span class="TemplateHeader-module--linkWord--2d9ef">Debug 🆆🅾🆁🅳🅻🅴</span></a></div><ul class="ControlButtons-module--linkList--df15b"><li class="ControlButtons-module--underLine--a2f91"><a href="https://app.lightrun.com/api/oauth/login">Log in</a></li><li class="ControlButtons-module--item--da1af"><a href="https://lightrun.com/get-a-lightrun-demo/" class="ButtonLink-module--linkBtn--3a273 ButtonLink-module--transparent--5a2f9 ">Book a Demo</a></li><li class="ControlButtons-module--item--da1af"><a href="https://app.lightrun.com/api/oauth/register" class="ButtonLink-module--linkBtn--3a273 ButtonLink-module--fill--6b8b9 ">Start For Free</a></li></ul></nav><button class="Burger-module--burger--9ead4 " title="Navigation"><span class="Burger-module--line--8f8d0"/><span class="Burger-module--line--8f8d0"/><span class="Burger-module--line--8f8d0"/></button></div><div class="TemplateHeader-module--menu--44853 "><div class="MobileMenu-module--mobileMenu--040cc"><div class="Container-module--container--052f0"><ul class="MobileMenu-module--containerNav--c271d"><li class="MobileMenu-module--navItem--99a59"><div class="MobileMenu-module--titleMenuItem--d0f06"><span>Dev Observability</span><img src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAxMiAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTcuOTczNzNlLTA3IDE4LjIxMjFMMS44MjAwNSAyMEwxMiAxMEwxLjgyMDA1IDguODk5NTllLTA3TC02LjM4NDhlLTA3IDEuNzg3ODhMOC4zNTk5IDEwTDcuOTczNzNlLTA3IDE4LjIxMjFaIiBmaWxsPSJ1cmwoI3BhaW50MF9saW5lYXJfNTE2XzEyNjApIi8+CjxkZWZzPgo8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MF9saW5lYXJfNTE2XzEyNjAiIHgxPSIxMiIgeTE9IjEwIiB4Mj0iLTIuMDcxMyIgeTI9IjguMjYzMDMiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iIzI4QTFDMCIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMxNjQ4OUMiLz4KPC9saW5lYXJHcmFkaWVudD4KPC9kZWZzPgo8L3N2Zz4K" alt="arrow" class="MobileMenu-module--arrow--1311d "/></div></li><li class="MobileMenu-module--navItem--99a59"><div class="MobileMenu-module--titleMenuItem--d0f06"><span>Product</span><img src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAxMiAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTcuOTczNzNlLTA3IDE4LjIxMjFMMS44MjAwNSAyMEwxMiAxMEwxLjgyMDA1IDguODk5NTllLTA3TC02LjM4NDhlLTA3IDEuNzg3ODhMOC4zNTk5IDEwTDcuOTczNzNlLTA3IDE4LjIxMjFaIiBmaWxsPSJ1cmwoI3BhaW50MF9saW5lYXJfNTE2XzEyNjApIi8+CjxkZWZzPgo8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MF9saW5lYXJfNTE2XzEyNjAiIHgxPSIxMiIgeTE9IjEwIiB4Mj0iLTIuMDcxMyIgeTI9IjguMjYzMDMiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iIzI4QTFDMCIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMxNjQ4OUMiLz4KPC9saW5lYXJHcmFkaWVudD4KPC9kZWZzPgo8L3N2Zz4K" alt="arrow" class="MobileMenu-module--arrow--1311d "/></div></li><li class="MobileMenu-module--navItem--99a59"><a href="https://lightrun.com/pricing" class="MobileMenu-module--linkMenuItem--341df">Pricing</a></li><li class="MobileMenu-module--navItem--99a59"><a href="https://docs.lightrun.com/" class="MobileMenu-module--linkMenuItem--341df">Docs</a></li><li class="MobileMenu-module--navItem--99a59"><div class="MobileMenu-module--titleMenuItem--d0f06"><span>Resources</span><img src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAxMiAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTcuOTczNzNlLTA3IDE4LjIxMjFMMS44MjAwNSAyMEwxMiAxMEwxLjgyMDA1IDguODk5NTllLTA3TC02LjM4NDhlLTA3IDEuNzg3ODhMOC4zNTk5IDEwTDcuOTczNzNlLTA3IDE4LjIxMjFaIiBmaWxsPSJ1cmwoI3BhaW50MF9saW5lYXJfNTE2XzEyNjApIi8+CjxkZWZzPgo8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MF9saW5lYXJfNTE2XzEyNjAiIHgxPSIxMiIgeTE9IjEwIiB4Mj0iLTIuMDcxMyIgeTI9IjguMjYzMDMiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iIzI4QTFDMCIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMxNjQ4OUMiLz4KPC9saW5lYXJHcmFkaWVudD4KPC9kZWZzPgo8L3N2Zz4K" alt="arrow" class="MobileMenu-module--arrow--1311d "/></div></li><li class="MobileMenu-module--navItem--99a59"><a href="https://lightrun.com/blog/" class="MobileMenu-module--linkMenuItem--341df">Blog</a></li><li class="MobileMenu-module--navItem--99a59"><div class="MobileMenu-module--titleMenuItem--d0f06"><span>Company</span><img src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAxMiAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTcuOTczNzNlLTA3IDE4LjIxMjFMMS44MjAwNSAyMEwxMiAxMEwxLjgyMDA1IDguODk5NTllLTA3TC02LjM4NDhlLTA3IDEuNzg3ODhMOC4zNTk5IDEwTDcuOTczNzNlLTA3IDE4LjIxMjFaIiBmaWxsPSJ1cmwoI3BhaW50MF9saW5lYXJfNTE2XzEyNjApIi8+CjxkZWZzPgo8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MF9saW5lYXJfNTE2XzEyNjAiIHgxPSIxMiIgeTE9IjEwIiB4Mj0iLTIuMDcxMyIgeTI9IjguMjYzMDMiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iIzI4QTFDMCIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMxNjQ4OUMiLz4KPC9saW5lYXJHcmFkaWVudD4KPC9kZWZzPgo8L3N2Zz4K" alt="arrow" class="MobileMenu-module--arrow--1311d "/></div></li><li class="MobileMenu-module--navItem--99a59"><a href="https://playground.lightrun.com" class="MobileMenu-module--linkMenuItem--341df">Debug Wordle</a></li></ul><div class="MobileMenu-module--controlButtons--b6016"><ul class="ControlButtons-module--linkList--df15b"><li class="ControlButtons-module--underLine--a2f91"><a href="https://app.lightrun.com/api/oauth/login">Log in</a></li><li class="ControlButtons-module--item--da1af"><a href="https://lightrun.com/get-a-lightrun-demo/" class="ButtonLink-module--linkBtn--3a273 ButtonLink-module--transparent--5a2f9 ">Book a Demo</a></li><li class="ControlButtons-module--item--da1af"><a href="https://app.lightrun.com/api/oauth/register" class="ButtonLink-module--linkBtn--3a273 ButtonLink-module--fill--6b8b9 ">Start For Free</a></li></ul></div></div></div></div></div></header><main><div class="Hero-module--hero--e76bd"><div class="Container-module--container--052f0"><div class="Hero-module--overlay--92431"><img src="/answers/static/question-mark-6a6962885f54fa6c88cf5e38232283da.png" alt="question-mark" class="Hero-module--heroImg--8554a"/><div class="Hero-module--wrapper--29990"><h1>Stuck on an issue?</h1><p class="Hero-module--description--894ed">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.<br/></p><p class="Hero-module--description--894ed Hero-module--strongText--4ea65">And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.</p><button class="Hero-module--btnHero--4efca">Talk to a Lightrun Answers expert</button></div></div></div></div><section class="sectionWrapper IssueSummary-module--issueSummary--29ccb"><div class="Container-module--container--052f0"><div class="IssueSummary-module--wrapper--5e867"><h2 class="IssueSummary-module--title--1229e">'import' and 'export' may only appear at the top level </h2><a href="https://github.com/webpack-contrib/imports-loader/issues/39" class="IssueSummary-module--linkUnderline--4cc7f">See original GitHub issue</a></div><div class="IssueSummary-module--wrapperGrid--5ff55"><div class="IssueSummary-module--descriptionWrapper--3a1cb"><h3>Issue Description</h3><div class="LeftScrollContainer-module--wrapper--9987b IssueSummary-module--textContainer--3e705 "><div class="LeftScrollContainer-module--content--0b83d"><div><pre><code>Module parse failed: /path/to/project/node_modules/imports-loader/index.js?this=>window!/path/to/project/src/entry.js 'import' and 'export' may only appear at the top level (4:0) You may need an appropriate loader to handle this file type. | (function() { | import './NameSpace'; | import './Polyfill'; <pre><code class="language-javascript"> rules: [ test: regx, use: [ loader: "imports-loader?this=>window", <p>But <code>import 'imports-loader?this=>window./NameSpace';</code> this works fine.</p> </div></div></div></div><div class="IssueSummary-module--descriptionWrapper--3a1cb"><h3>Issue Analytics</h3><ul class="IssueSummary-module--analyticsWrapper--8f2e1"><li><span class="IssueSummary-module--boldTitle--7ed35">State:</span><img src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTEiIGhlaWdodD0iMzEiIHZpZXdCb3g9IjAgMCA5MSAzMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3QgeD0iMC43NSIgeT0iMC40NTExNzIiIHdpZHRoPSI4OS41IiBoZWlnaHQ9IjMwIiByeD0iMTUiIGZpbGw9IiNCRTAwMDAiLz4KPHBhdGggZD0iTTQwLjQyNjEgMTMuNDUxMkgzOS4xOTMyQzM5LjEyMDMgMTMuMDk2NSAzOC45OTI3IDEyLjc4NSAzOC44MTA0IDEyLjUxNjVDMzguNjMxNCAxMi4yNDggMzguNDEyNiAxMi4wMjI3IDM4LjE1NDEgMTEuODQwNEMzNy44OTg5IDExLjY1NDggMzcuNjE1NSAxMS41MTU2IDM3LjMwNCAxMS40MjI4QzM2Ljk5MjQgMTEuMzMgMzYuNjY3NiAxMS4yODM2IDM2LjMyOTUgMTEuMjgzNkMzNS43MTMxIDExLjI4MzYgMzUuMTU0NiAxMS40MzkzIDM0LjY1NDEgMTEuNzUwOUMzNC4xNTcgMTIuMDYyNCAzMy43NjA5IDEyLjUyMTUgMzMuNDY1OSAxMy4xMjhDMzMuMTc0MiAxMy43MzQ2IDMzLjAyODQgMTQuNDc4NiAzMy4wMjg0IDE1LjM2MDNDMzMuMDI4NCAxNi4yND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M4IDIyLjIzNzIgMjMuODQ0MiAyMi4zMzdDMjMuNzQ0NCAyMi40MzY3IDIzLjYwOTEgMjIuNDkyNyAyMy40NjgxIDIyLjQ5MjdIMTQuNTMxOUMxNC4zOTA5IDIyLjQ5MjcgMTQuMjU1NiAyMi40MzY3IDE0LjE1NTggMjIuMzM3QzE0LjA1NjEgMjIuMjM3MiAxNCAyMi4xMDE5IDE0IDIxLjk2MDlWMTUuMjM2NUMxNCAxNS4wOTU1IDE0LjA1NjIgMTQuOTYwMiAxNC4xNTU4IDE0Ljg2MDRDMTQuMjU1NiAxNC43NjA3IDE0LjM5MDkgMTQuNzA0NyAxNC41MzE5IDE0LjcwNDdIMTUuMjk0NFYxMS44NTc3QzE1LjM4MTcgMTAuNTk3OCAxNi4xMDQ4IDkuNDY4OTggMTcuMjEyOSA4Ljg2MjgyQzE4LjMyMDkgOC4yNTY2NiAxOS42NjE0IDguMjU2NjYgMjAuNzY5NCA4Ljg2MjgyQzIxLjg3NzYgOS40Njg5OCAyMi42MDA2IDEwLjU5NzggMjIuNjg3OSAxMS44NTc3SDIyLjY4NDlWMTQuNzA0N1pNMjEuNjIyMSAxNC43MDQ3VjExLjg0OTNIMjEuNjIzM0MyMS41NDc4IDEwLjk2MzMgMjEuMDMxNCAxMC4xNzQ1IDIwLjI0OSA5Ljc1MDgzQzE5LjQ2NDMgOS4zMjU4NyAxOC41MTggOS4zMjU4NyAxNy43MzMxIDkuNzUwODNDMTYuOTQ4NCAxMC4xNzU4IDE2LjQzMTIgMTAuOTY4MyAxNi4zNTgxIDExLjg1NzdWMTQuNzA0N0gyMS42MjIxWiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==" alt="closed"/></li><li>Created <!-- -->6 years ago</li><li><span class="IssueSummary-module--boldTitle--7ed35">Reactions:</span><span>5</span></li><li><span class="IssueSummary-module--boldTitle--7ed35">Comments:</span><span>9<!-- --> (2 by maintainers)</span></li></ul></div></div></div></section><section class="sectionWrapper TopResultsSection-module--topResultsSection--ece62"><div class="Container-module--container--052f0"><div class="TopResultsSection-module--wrapper--4186d"><section class="TopGitHubComments-module--commentsSection--674bb"><h4 class="H4-module--title--7a773 "><img src="/answers/static/github_icon-09b634433ea463575cb8c3c7818ee4e2.svg" alt="github_icon"/>Top GitHub Comments</h4><div class="TopGitHubComments-module--commentsContainer--87a5a"><div class="TopGitHubComments-module--commentsWrapper--89d00"><div class="TopGitHubComments-module--itemWrapper--c6dba"><div class="TopGitHubComments-module--itemHead--c0a84"><div class="TopGitHubComments-module--itemReactions--3aa39"><span class="TopGitHubComments-module--count--e5170">8</span><span class="TopGitHubComments-module--description--034b2">reactions</span></div><a href="https://github.com/webpack-contrib/imports-loader/issues/39#issuecomment-340815993" class="TopGitHubComments-module--name--a03f6">SteinNs</a><span class="TopGitHubComments-module--itemTitle--6bdb1">commented, Oct 31, 2017</span></div><div class="LeftScrollContainer-module--wrapper--9987b TopGitHubComments-module--scrollContainer--9d8cc"><div class="LeftScrollContainer-module--content--0b83d"><div><pre><code>import _ from 'lodash'; import { cube } from './math'; import Print from './print' if(process.env.NODE_ENV !== 'production') { console.log('development'); // import './style.css'; function component ( ) { var elm = document.createElement('div'); var btn = document.createElement('button'); var br = document.createElement('br'); elm.innerHTML = join(['hel1lo','webpack'], ' '); // elm.innerHTML = ['hello webpac1k!'].join(' '); btn.innerHTML = 'click print'; this.alert('Hmmm, this probably isn\'t a great idea...'); elm.appendChild(br); elm.appendChild(btn); btn.onclick = Print.bind(null, 'hello') return elm; document.body.appendChild(component()) <pre><code>const path = require('path'); const CleanWebpackPlugin = require('clean-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const webpack = require('webpack'); module.exports = { entry: { app: './src/index.js', vendor: ['lodash'] another: './src/another-module.js' module: { rules: [ test: require.resolve('./src/index.js'), use: 'imports-loader?this=>window' test: /\.css$/, use: [ 'style-loader', 'css-loader' test: /\.(png|svg|jpg|gif)$/, use: [ 'file-loader' test: /\.(woff|woff2|eot|ttf|otf)$/, use:[ 'file-loader' test: /\.(csv|tsv)$/, use: [ 'csv-loader' test: /\.xml$/, use: [ 'xml-loader' plugins: [ new CleanWebpackPlugin(['dist']), new HtmlWebpackPlugin({ title: 'production' new webpack.optimize.CommonsChunkPlugin({ name: 'vendor' new webpack.optimize.CommonsChunkPlugin({ name: 'runtime' new webpack.ProvidePlugin({ join: ['lodash', 'join'] output: { filename: '[name].[hash].bundle.js', path: path.resolve(__dirname, 'dist'), chunkFilename: '[name].bundle.js' <p>Hi, I’m a webpack beginner. I followed the webpack official guide using imports-loader and found an error</p> <pre><code>ERROR in ./src/index.js Module parse failed: 'import' and 'export' may only appear at the top level (7:0) You may need an appropriate loader to handle this file type. | * Created by Administrator on 2017/10/23. | */ | import _ from 'lodash'; | import { cube } from './math'; | import Print from './print' @ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/index.js </div></div></div></div><div class="TopGitHubComments-module--itemWrapper--c6dba"><div class="TopGitHubComments-module--itemHead--c0a84"><div class="TopGitHubComments-module--itemReactions--3aa39"><span class="TopGitHubComments-module--count--e5170">6</span><span class="TopGitHubComments-module--description--034b2">reactions</span></div><a href="https://github.com/webpack-contrib/imports-loader/issues/39#issuecomment-441567380" class="TopGitHubComments-module--name--a03f6">michaelzhng</a><span class="TopGitHubComments-module--itemTitle--6bdb1">commented, Nov 26, 2018</span></div><div class="LeftScrollContainer-module--wrapper--9987b TopGitHubComments-module--scrollContainer--9d8cc"><div class="LeftScrollContainer-module--content--0b83d"><div><p><a href="https://github.com/SteinNs">@SteinNs</a> I had the same issue then I found that <code>imports-loader</code> just does this to my module:</p> <pre><code>/* src/index.js */
推荐文章
兴奋的烤红薯
·
python在屏幕上绘制方框 - CSDN文库
3 周前
豪爽的肉夹馍
·
dadda-translate-crx/src/components/vue/Result-panel.vue at master · waynecz/dadda-translate-crx · Gi
3 月前
干练的硬币
·
为什么服务的秘钥验证失败? | Bob
4 月前
闯红灯的爆米花
·
港青南京实习感受沧桑巨变 访近代史遗迹学会珍惜 _大公网
5 月前
玩足球的核桃
·
【Docker】容器获取宿主机IP和MAC_c#程序如何获取容器宿主机的ip-CSDN博客
12 月前